-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.dev.yml
53 lines (48 loc) · 1005 Bytes
/
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
version: "2"
networks:
app-tier:
driver: bridge
services:
app:
build:
context: .
dockerfile: ./Dockerfile
image: sanic-mongodb-extension
environment:
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=app
volumes:
- ./sanic_mongodb_ext:/app/sanic_mongodb_ext
ports:
- "8000:8000"
depends_on:
- mongodb
networks:
- app-tier
tty: true
mongodb:
image: bitnami/mongodb:4.1
ports:
- "27017:27017"
environment:
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_DATABASE=app
- 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