-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
74 lines (69 loc) · 1.65 KB
/
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
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
services:
web:
build:
context: Client
dockerfile: web.Dockerfile
restart: unless-stopped
networks:
- reasn-network
ports:
- "${WEB_LISTEN_PORT:-5273}:3000"
env_file:
- .env
depends_on:
- server
server:
build:
context: Server
dockerfile: server.Dockerfile
target: production
restart: unless-stopped
networks:
- reasn-isolated-network
- reasn-network
ports:
- "${SERVER_LISTEN_PORT:-5272}:8080"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16
restart: unless-stopped
networks:
- reasn-isolated-network
volumes:
- postgres-data:/var/lib/postgresql/data
- ./Database/init-db.sql:/docker-entrypoint-initdb.d/01-init-db.sql
- ./Database/init-constraints.sql:/docker-entrypoint-initdb.d/02-init-constraints.sql
- ./Database/init-users.sh:/docker-entrypoint-initdb.d/99-init-users.sh
env_file:
- .env
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER:-postgres}", "-d", "${POSTGRES_DB:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:8.0
restart: unless-stopped
networks:
- reasn-isolated-network
ports:
- "${PGADMIN_LISTEN_PORT:-5050}:${PGADMIN_LISTEN_PORT:-80}"
volumes:
- pgadmin-data:/var/lib/pgadmin
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
networks:
reasn-isolated-network:
driver: bridge
reasn-network:
driver: bridge
volumes:
postgres-data:
pgadmin-data: