-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
93 lines (85 loc) · 1.73 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
86
87
88
89
90
91
92
93
version: "2"
networks:
app-tier:
driver: bridge
services:
app:
build:
context: .
dockerfile: ./Dockerfile
image: microservice-auth
environment:
- APP_HOST=0.0.0.0
- APP_DEBUG=False
- APP_SERVER=none
- APP_CONFIG_PATH=./config.py
- REDIS_HOST=redis
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=auth
volumes:
- ./auth:/app/
ports:
- "8000:8000"
depends_on:
- mongodb
- redis
networks:
- app-tier
tty: true
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
mongodb_ui:
image: adicom/admin-mongo:latest
ports:
- "1234:1234"
environment:
- CONN_NAME=mongodb_connection
- DB_USERNAME=root
- DB_PASSWORD=root
- DB_HOST=mongodb
depends_on:
- mongodb
networks:
- app-tier
redis:
image: bitnami/redis:latest
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_EXTRA_FLAGS=--maxmemory 100mb
networks:
- app-tier
redis_ui:
image: tenstartups/redis-commander:latest
command: --redis-host redis
ports:
- "8081:8081"
depends_on:
- redis
links:
- redis:redis
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