-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
58 lines (57 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '2'
services:
web:
build: .
entrypoint: /bin/bash
ports:
- "8000:8000"
links:
- postgres
- redis
tty: true
stdin_open: true
working_dir: /app-v/
user: test
environment:
DOCKER: True
volumes:
- ./:/app-v/
- ./pipenv:/home/test
celery:
build: .
entrypoint: pipenv run celery worker -A velafrica.core.celery
links:
- postgres
- redis
tty: true
stdin_open: true
working_dir: /app-v/
user: test
volumes:
- ./:/app-v/
- ./pipenv:/home/test
celery-beat:
build: .
entrypoint: pipenv run celery beat -A velafrica.core.celery
links:
- postgres
- redis
tty: true
stdin_open: true
working_dir: /app-v/
user: test
volumes:
- ./:/app-v/
- ./pipenv:/home/test
redis:
image: redis
ports:
- "6379:6379"
postgres:
image: mdillon/postgis:9.6-alpine
volumes:
- ./db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: foobar
POSTGRES_USER: klub
PGDATA: /var/lib/postgresql/data