-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
64 lines (59 loc) · 1.47 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
64 lines (59 loc) · 1.47 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
name: atrium
networks:
atrium_net:
name: atrium_net
services:
db:
container_name: atrium-db
image: postgres:16-alpine
restart: unless-stopped
env_file: ./backend/.env
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- atrium_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U \"$$POSTGRES_USER\" -d \"$$POSTGRES_DB\""]
interval: 5s
timeout: 5s
retries: 10
backend:
container_name: atrium-backend
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
env_file: ./backend/.env
volumes:
- ./backend:/app
- uploads:/app/app/static/uploads
- startup_status:/status
networks:
- atrium_net
depends_on:
db:
condition: service_healthy
command: ["./entrypoint.sh"]
web:
container_name: atrium-web
build:
context: .
dockerfile: nginx/Dockerfile
restart: unless-stopped
env_file: ./backend/.env
ports:
- "80:80"
networks:
- atrium_net
volumes:
# Lets nginx serve the backend's startup-stage marker as a plain static
# file (see entrypoint.sh) even before gunicorn is listening, so the
# loading screen can show real progress instead of just a spinner.
- startup_status:/usr/share/nginx/html/status:ro
volumes:
postgres_data:
name: atrium_postgres_data
uploads:
name: atrium_uploads
startup_status:
name: atrium_startup_status