-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
67 lines (62 loc) · 1.09 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
version: '2'
services:
# app server
app:
build:
context: .
dockerfile: docker/Dockerfile
hostname: app
image: flask-full
volumes:
- .:/srv/flask-full
command: ./docker/app/run_app.sh
ports:
- "8080:8080"
links:
- redis
- mongo
depends_on:
- redis
- mongo
environment:
redis_host: "redis"
mongo_host: "mongo"
# Celery beat
beat:
image: flask-full
volumes:
- .:/srv/flask-full
command: ./docker/beat/run_beat.sh
links:
- redis
- mongo
depends_on:
- mongo
- redis
environment:
redis_host: "redis"
mongo_host: "mongo"
# Celery worker
worker:
image: flask-full
volumes:
- .:/srv/flask-full
command: ./docker/worker/run_worker.sh
links:
- redis
- mongo
depends_on:
- redis
- mongo
environment:
redis_host: "redis"
mongo_host: "mongo"
# Redis
redis:
image: redis:4.0.9
hostname: redis
mongo:
image: mongo:3.6.4
hostname: mongo
ports:
- "27018:27017"