-
Notifications
You must be signed in to change notification settings - Fork 112
/
docker-compose.yml
40 lines (37 loc) · 1010 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
db:
image: sameersbn/postgresql:9.4
environment:
- DB_NAME=localshop
- DB_USER=localshop
- DB_PASS=shopping
ports:
- "5432"
volumes:
- ./docker-vol/postgresql:/var/lib/postgresql
web:
build: .
volumes:
- ./docker-vol:/opt/localshop
links:
- db:db
environment:
- DJANGO_SECRET_KEY=a7d03faa0c054b3dba38b396bf3c7996
- DATABASE_URL=postgresql://localshop:shopping@db/localshop
- DJANGO_MEDIA_ROOT=/localshop/media
ports:
- "8000:8000"
command: uwsgi --http 0.0.0.0:8000 --module localshop.wsgi --master --die-on-term
worker:
build: .
volumes:
- ./docker-vol:/opt/localshop
links:
- db:db
environment:
- DJANGO_SECRET_KEY=a7d03faa0c054b3dba38b396bf3c7996
- DATABASE_URL=postgresql://localshop:shopping@db/localshop
- DJANGO_MEDIA_ROOT=/localshop/media
entrypoint:
localshop
command:
celery worker -B -E