-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
61 lines (55 loc) · 1.32 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
version: '3'
services:
kw-backend:
container_name: kw
build: .
command: python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
volumes:
- ./:/app
depends_on:
- db
- redis
db:
image: postgres:9.6
restart: always
volumes:
- ./Docker/postgres/data:/postgres/data
environment:
- POSTGRES_USER=kaniwani
- POSTGRES_PASSWORD=password
- PGDATA=/postgres/data
adminer:
image: adminer
restart: always
ports:
- 8001:8080
depends_on:
- db
redis:
image: redis:4.0
restart: always
ports:
# Expose the Redis port to the host machine to allow connecting with via
# the redis CLI. This shouldn't be done in production because docker-compose
# sets up an internal network between containers.
- 6379:6379
volumes:
- ./Docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
- ./Docker/redis/data:/redis/data
scheduler:
build: .
command: celery -A KW.celery_app beat --loglevel=INFO --logfile=kwbeat.log --workdir=/app
volumes:
- ./:/app
depends_on:
- redis
- worker
worker:
build: .
command: celery -A KW.celery_app worker --loglevel=INFO --logfile=kwworker.log --workdir=/app
volumes:
- ./:/app
depends_on:
- redis