-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.staging.yml
54 lines (48 loc) · 1.03 KB
/
docker-compose.staging.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
version: "3.8"
networks:
default:
name: nginx-proxy-network
external: true
services:
web:
build:
context: ./super-drf
dockerfile: Dockerfile.with-compose.prod
command: gunicorn superduperdrf.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
expose:
- 8000
env_file:
- ./.env.staging
depends_on:
- db
db:
image: postgres:13.0-alpine
volumes:
- ./postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.staging.db
- ./.env.proxy
expose:
- 5432
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
# args:
# IDENTIFIER: "${IDENTIFIER}"
volumes:
- static_volume:/home/app/web/staticfiles
- ./mediafiles:/home/app/web/mediafiles
- ./logs:/home/app/web/logs
env_file:
- ./.env.proxy
expose:
- 80
# - 8080 # if nginx stub
depends_on:
- web
volumes:
static_volume: