-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (44 loc) · 980 Bytes
/
docker-compose.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
version: '3.8'
services:
api:
build: ./app
volumes:
- static_volunme:/home/app/web/static
- media_volume:/home/app/web/media
command: gunicorn cspc_web.wsgi:application -w 4 --bind 0.0.0.0:8000
env_file:
- ./app/.env
expose:
- 8000
depends_on:
- db
nginx:
build: ./nginx
volumes:
- static_volunme:/home/app/web/static
- media_volume:/home/app/web/media
ports:
- 8004:80
depends_on:
- api
db:
image: postgres:13.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
dev_api:
build:
context: ./app
dockerfile: Dockerfile-dev
command: python manage.py runserver 0.0.0.0:8000 --settings=cspc_web.settings_dev
volumes:
- ./app/db:/home/app/web/db
- dev_media_volume:/home/app/web/media
ports:
- "8005:8000"
volumes:
postgres_data:
static_volunme:
media_volume:
dev_media_volume: