-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.override.yml
81 lines (75 loc) · 1.71 KB
/
docker-compose.override.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
rt:
build:
args:
ADDITIONAL_CPANM_ARGS: "-n" # disable tests in dev to speed up builds
restart: "no"
deploy:
mode: replicated
replicas: 1
depends_on:
db:
condition: service_healthy
restart: true
cron:
build:
args:
ADDITIONAL_CPANM_ARGS: "-n" # disable tests in dev to speed up builds
restart: "no"
depends_on:
db:
condition: service_healthy
restart: true
caddy:
restart: "no"
db:
image: postgres:latest
restart: "no"
environment:
POSTGRES_DB: rt
POSTGRES_USER: rt
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
volumes:
- vol_db:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
networks:
- net
pgadmin:
image: dpage/pgadmin4:latest
restart: "no"
ports:
- "127.0.0.1:8888:80"
environment:
PGADMIN_LISTEN_ADDRESS: 0.0.0.0
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/pgadmin_password
PGADMIN_DISABLE_POSTFIX: disable
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://127.0.0.1:80/misc/ping"]
interval: 10s
timeout: 10s
start_period: 160s
retries: 3
depends_on:
db:
condition: service_healthy
restart: true
secrets:
- pgadmin_password
volumes:
- vol_pgadmin:/var/lib/pgadmin
networks:
- net
secrets:
pgadmin_password:
file: ./pgadmin_password.secret
volumes:
vol_pgadmin:
vol_db: