-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 943 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 943 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
45
46
47
48
49
50
51
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
- redis
- redis2
volumes:
- ./web/code/:/code/
#command: /bin/bash
command: bash -c "supervisord -c /etc/supervisor/supervisord.conf; python manage.py runserver 0.0.0.0:8000"
#command: bash -c "/etc/init.d/celeryd start ; python manage.py runserver 0.0.0.0:8000"
#command: /usr/local/bin/gunicorn -w 2 -b :8000 perfproject.wsgi
redis:
build: ./redis
redis2:
build: ./redis
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
- "443:443"
volumes:
- ./web/app/static:/www/static
volumes_from:
- web
links:
- web:web
#data:
# restart: always
# image: postgres:latest
# volumes:
# - /var/lib/postgresql
# ports:
# - "5433:5432"
# command: "true"
postgres:
restart: always
image: postgres:latest
volumes:
- ./db/postgresql:/var/lib/postgresql
expose:
- "5432"