-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.39 KB
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
services:
postgresql:
container_name: postgres-latest
image: postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}']
interval: 1s
timeout: 5s
retries: 10
expose:
- "${POSTGRES_EXPOSE_PORTS}"
ports:
- ${POSTGRES_PORTS}
volumes:
- db:/var/lib/postgresql/data
env_file:
- path: ./.env
required: false
environment:
- 'POSTGRES_USER= ${POSTGRES_USER}'
- 'POSTGRES_PASSWORD= ${POSTGRES_PASSWORD}'
- 'POSTGRES_DB= ${POSTGRES_DB}'
networks:
- network
pgadmin:
container_name: pgadmin4-latest
image: dpage/pgadmin4
restart: always
depends_on:
- postgresql
ports:
- ${PGADMIN_PORTS}
volumes:
- pgadmin-data:/var/lib/pgadmin
env_file:
- path: ./.env
required: false
networks:
- network
notificationsbot:
image: ${DOCKER_REGISTRY-}notificationsbot
build:
context: NotificationBot
dockerfile: Dockerfile
ports:
- ${HTTP_PORTS}
- ${HTTPS_PORTS}
networks:
- network
depends_on:
postgresql:
condition: service_healthy
env_file:
- path: ./.env
required: false
volumes:
db:
driver: local
pgadmin-data:
driver: local
networks:
network:
ipam:
driver: default
config:
- subnet: ${SUBNET}