-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.16 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
services:
db:
image: postgres:10.15-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
networks:
- simpl
volumes:
- postgres_data:/var/lib/postgresql/data/
api:
build:
context: .
volumes:
- .:/code
ports:
- "8100:8000"
command: ["/bin/bash", "/code/start.sh"]
environment:
- DJANGO_SETTINGS_MODULE=config.settings.compose
- DJANGO_DEBUG=1
- GUNICORN_BIND=0.0.0.0:8000
depends_on:
- db
- redis
- memcached
stop_signal: SIGTERM
networks:
- simpl
memcached:
image: "memcached:1.6.5-alpine"
stop_signal: SIGKILL
networks:
- simpl
redis:
image: "redis:alpine"
stop_signal: SIGKILL
networks:
- simpl
celery:
build: .
command: celery -A config worker -l debug
volumes:
- .:/code
depends_on:
- db
- redis
environment:
- DATABASE_URL=postgres://postgres@db/postgres
- DJANGO_SETTINGS_MODULE=config.settings.compose
- DJANGO_DEBUG=1
stop_signal: SIGTERM
networks:
- simpl
networks:
simpl:
driver: bridge
volumes:
postgres_data: