-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
71 lines (69 loc) · 1.71 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
66
67
68
69
70
71
version: '3'
services:
web:
build: .
image: ayrton/kamu
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgres://kamu:kamu@database/kamu
- CELERY_BROKER_URL=redis://redis:6379/0
- NODE_ENV=production
- DEBUG=true
- GUNICORN_CMD_ARGS="--bind=0.0.0.0"
volumes:
- ./core:/app/core
- ./books:/app/books
- ./config:/app/config
- ./Makefile:/app/Makefile
- ./requirements.txt:/app/requirements.txt
- ./waitlist:/app/waitlist
- cache:/tmp/cache
- buildpacks:/tmp/buildpacks
depends_on:
- database
- redis
worker:
build: .
image: ayrton/kamu
command: ["/start", "worker"]
environment:
- DATABASE_URL=postgres://kamu:kamu@database/kamu
- CELERY_BROKER_URL=redis://redis:6379/0
- NODE_ENV=production
- DEBUG=true
- DJANGO_EMAIL_FROM=${DJANGO_EMAIL_FROM}
- DJANGO_EMAIL_HOST=${DJANGO_EMAIL_HOST}
- DJANGO_EMAIL_PORT=${DJANGO_EMAIL_PORT}
- DJANGO_EMAIL_HOST_USER=${DJANGO_EMAIL_HOST_USER}
- DJANGO_EMAIL_HOST_PASSWORD=${DJANGO_EMAIL_HOST_PASSWORD}
volumes:
- ./core:/app/core
- ./books:/app/books
- ./config:/app/config
- ./Makefile:/app/Makefile
- ./requirements.txt:/app/requirements.txt
- ./waitlist:/app/waitlist
- cache:/tmp/cache
- buildpacks:/tmp/buildpacks
depends_on:
- database
- redis
database:
image: postgres
expose:
- 5432
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=kamu
- POSTGRES_PASSWORD=kamu
- POSTGRES_DB=kamu
redis:
image: redis
expose:
- 6379
volumes:
db-data:
cache:
buildpacks: