-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.azure.yml
42 lines (38 loc) · 985 Bytes
/
docker-compose.azure.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
version: '3.7'
services:
web:
image: alumate/production:web
command: gunicorn alumate.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/web/staticfiles
environment:
- DEBUG=1
- SECRET_KEY=!f7!huaaiut+_wo+n_zl3jpq&$qp5kv!x^2c&af%8d7&c5k*w)
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=alumate_prod
- SQL_USER=alumate
- SQL_PASSWORD=StudyAbroad
- SQL_HOST=db
- SQL_PORT=5432
- DATABASE=postgres
depends_on:
- db
db:
image: alumate/production:db
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=alumate
- POSTGRES_PASSWORD=StudyAbroad
- POSTGRES_DB=alumate_prod
nginx:
image: alumate/production:nginx
volumes:
- static_volume:/home/app/web/staticfiles
ports:
- 4000:80
depends_on:
- web
volumes:
postgres_data:
static_volume: