-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 790 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (40 loc) · 790 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
services:
web:
build: .
command: sh -c "python manage.py collectstatic --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:8000"
volumes:
- .:/app
- static_volume:/app/staticfiles
expose:
- "8000"
depends_on:
- db
- redis
env_file:
- ./.env
nginx:
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- static_volume:/app/staticfiles
depends_on:
- web
db:
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
redis:
image: redis:7
volumes:
- redis_volume:/data
env_file:
- ./.env
volumes:
postgres_data:
static_volume:
redis_volume: