-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
85 lines (78 loc) · 1.66 KB
/
docker-compose.dev.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "2"
networks:
app-tier:
driver: bridge
services:
app:
build:
context: .
dockerfile: ./Dockerfile
image: microservice-strategist
environment:
- APP_HOST=0.0.0.0
- APP_DEBUG=False
- APP_SERVER=none
- APP_CONFIG_PATH=./config.py
- WAIT_FOR_RABBITMQ=30
volumes:
- ./strategist:/app/
depends_on:
- rabbitmq
- microservice_auth
networks:
- app-tier
tty: true
microservice_auth:
image: openmatchmaking/microservice-auth:0.2.1
environment:
- APP_HOST=0.0.0.0
- APP_SERVER=sanic
- APP_CONFIG_PATH=./config.py
- REDIS_HOST=redis
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=auth
- WAIT_FOR_MONGODB=30
- WAIT_FOR_REDIS=30
- WAIT_FOR_RABBITMQ=30
ports:
- "8000:8000"
tty: true
depends_on:
- mongodb
- redis
- rabbitmq
networks:
- app-tier
rabbitmq:
image: bitnami/rabbitmq:latest
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_USERNAME=user
- RABBITMQ_PASSWORD=password
- RABBITMQ_VHOST=vhost
networks:
- app-tier
mongodb:
image: bitnami/mongodb:4.1
ports:
- "27017:27017"
environment:
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_DATABASE=auth
- MONGODB_ROOT_PASSWORD=root
networks:
- app-tier
redis:
image: bitnami/redis:latest
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_EXTRA_FLAGS=--maxmemory 100mb
networks:
- app-tier