-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (41 loc) · 846 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
45 lines (41 loc) · 846 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
services:
web:
image: snushev/learning-platform:latest
restart: unless-stopped
env_file:
- .env
volumes:
- static_volume:/app/static
- media_volume:/app/media
expose:
- 8000
depends_on:
db:
condition: service_healthy
db:
image: postgres:15
restart: always
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- 80:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/static
- media_volume:/app/media
depends_on:
- web
volumes:
db-data:
static_volume:
media_volume: