-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
43 lines (41 loc) · 1.3 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
version: "3"
services:
web:
build: .
command: ./wait-for-it.sh postgres:5432 --strict --timeout=0 -- ./wait-for-it.sh redis:6379 --strict --timeout=0 -- bash -c "PORT=8000 bash dokku-boot.sh"
volumes:
- .:/app
ports:
- 8000:8000
environment:
- DATABASE_URL=postgres://postgres:example@postgres:5432/wharf
- BROKER_URL=redis://redis:6379/0
- CACHE_URL=redis://redis:6379/1
- DOKKU_SSH_HOST=${DOKKU_SSH_HOST:-127.0.0.1}
- DOKKU_SSH_PORT=${DOKKU_SSH_PORT:-22}
- GITHUB_SECRET=${GITHUB_SECRET:-password}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-password}
depends_on:
- postgres
- redis
celery:
build: .
command: ./wait-for-it.sh postgres:5432 --strict --timeout=0 -- ./wait-for-it.sh redis:6379 --strict --timeout=0 -- bash -c "python manage.py celery"
volumes:
- .:/app
environment:
- DATABASE_URL=postgres://postgres:example@postgres:5432/wharf
- BROKER_URL=redis://redis:6379/0
- CACHE_URL=redis://redis:6379/1
- DOKKU_SSH_HOST=${DOKKU_SSH_HOST:-127.0.0.1}
- DOKKU_SSH_PORT=${DOKKU_SSH_PORT:-22}
depends_on:
- postgres
- redis
postgres:
image: postgres:10-alpine
environment:
POSTGRES_DB: wharf
POSTGRES_PASSWORD: example
redis:
image: redis:4-alpine