-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-prod.yml
59 lines (52 loc) · 1.02 KB
/
docker-compose-prod.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
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/code
env_file:
- .env
command: [ "./scripts/wait-for-it.sh", "db:5432", "--", "gunicorn", "--bind", ":8000", "--workers", "4", "config.wsgi:application" ]
depends_on:
- db
networks:
- nginx_network
db:
image: postgres
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- nginx_network
redis:
image: redis:latest
networks:
- nginx_network
pgadmin:
image: dpage/pgadmin4
env_file:
- .env
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- nginx_network
nginx:
image: nginx:latest
ports:
- "8002:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./staticfiles:/code/staticfiles
- ./media:/code/media
depends_on:
- web
networks:
- nginx_network
volumes:
postgres_data:
pgadmin_data:
networks:
nginx_network: