-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 893 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
version: '2'
services:
oneoff:
build: ./server
volumes:
- ./server:/usr/src/app
depends_on:
- db
staticfiles:
build: ./server
volumes:
- ./nginx/static:/static_root
- ./server:/usr/src/app
command: python manage.py collectstatic --noinput
client:
build: ./client
environment:
- SERVER_ENV=${SERVER_ENV}
volumes:
- ./client:/client
- ./nginx/static:/static
web:
environment:
- SERVER_ENV=${SERVER_ENV}
- SECRET_KEY=${SECRET_KEY}
restart: always
build: ./server
command: /usr/local/bin/gunicorn -w 2 -b :8000 config.wsgi
volumes:
- ./server:/app
depends_on:
- db
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- ./nginx/static:/www/static
depends_on:
- web
db:
restart: always
image: postgres