-
-
Notifications
You must be signed in to change notification settings - Fork 356
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 946 Bytes
/
docker-compose.yml
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
33
volumes:
data-volume:
services:
db:
image: postgres:10
env_file:
- .env
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
volumes:
- data-volume:/var/lib/postgresql/data
###########################################################################
# If you want to try out Alf.io, you can uncomment the following service: #
###########################################################################
# alfio:
# image: alfio/alf.io
# env_file:
# - .env
# depends_on:
# db:
# condition: service_healthy
# ports:
# - "8080:8080"