forked from cpfair/tapiriik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.69 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
version: '3'
services:
tapiriik:
build: .
environment:
RABBITMQ_BROKER_URL: "amqp://guest@tapiriik_rabbitmq//"
MONGO_HOST: "mongodb://root:example@tapiriik_mongo:27017/admin"
REDIS_HOST: "tapiriik_redis"
ports:
- "8000:8000"
volumes:
- ./persistent:/tapiriik/persistent
links:
- tapiriik_redis
- tapiriik_mongo
- tapiriik_rabbitmq
entrypoint: "/bin/bash -c '/tapiriik/bootstrap-docker-compose.sh && python3 manage.py runserver 0.0.0.0:8000'"
tapiriik_worker:
build: .
environment:
RABBITMQ_BROKER_URL: "amqp://guest@tapiriik_rabbitmq//"
MONGO_HOST: "mongodb://root:example@tapiriik_mongo:27017/admin"
REDIS_HOST: "tapiriik_redis"
volumes:
- ./persistent:/tapiriik/persistent
links:
- tapiriik_redis
- tapiriik_mongo
- tapiriik_rabbitmq
entrypoint: "/bin/bash -c '/tapiriik/bootstrap-docker-compose.sh && python3 sync_worker.py ; sleep 10'"
restart: unless-stopped
tapiriik_scheduler:
build: .
environment:
RABBITMQ_BROKER_URL: "amqp://guest@tapiriik_rabbitmq//"
MONGO_HOST: "mongodb://root:example@tapiriik_mongo:27017/admin"
REDIS_HOST: "tapiriik_redis"
volumes:
- ./persistent:/tapiriik/persistent
links:
- tapiriik_redis
- tapiriik_mongo
- tapiriik_rabbitmq
entrypoint: "/bin/bash -c '/tapiriik/bootstrap-docker-compose.sh && python3 sync_scheduler.py ; sleep 10'"
restart: unless-stopped
tapiriik_redis:
image: redis
tapiriik_mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
tapiriik_rabbitmq:
image: rabbitmq:3-management