-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (30 loc) · 824 Bytes
/
Copy pathcompose.yaml
File metadata and controls
32 lines (30 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.8"
# basic services are partially defined here: database and engine
# environment variables are provided for these in the int and prod compose yaml
services:
database:
image: 'postgres:latest'
expose:
- "${DB_PORT}"
ports:
- "${DB_PORT}:${DB_PORT}"
command: "-p ${DB_PORT}"
healthcheck:
test: [ "CMD", "pg_isready", "-U","${POSTGRES_USER}", "-d","${POSTGRES_DB}","-p","${DB_PORT}" ]
interval: 5s
timeout: 10s
retries: 12
restart: unless-stopped
engine:
depends_on:
database:
condition: service_healthy
healthcheck:
test: bash -c "[ -f /tmp/health.ready ]"
interval: 5s
timeout: 10s
retries: 12
build:
context: .
dockerfile: ConsensusChessEngine/Dockerfile
restart: unless-stopped