-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1007 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1007 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
postgres:
image: postgres:15-alpine
restart: unless-stopped
env_file: .env
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
- cwdb-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
env_file: .env
environment:
- PUBLISH_PATH=/app/data
volumes:
- publish_data:/app/data
networks:
- cwdb-network
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
BASE_PATH: ${BASE_PATH:-}
restart: unless-stopped
ports:
- "8000:80"
volumes:
- publish_data:/data:ro
networks:
- cwdb-network
depends_on:
- backend
volumes:
publish_data:
networks:
cwdb-network: