-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.21 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
version: '3'
services:
api:
container_name: api
build: api/.
restart: unless-stopped
ports:
- "5000:5000"
environment:
APP_ENV: "prod"
APP_DEBUG: "False"
APP_PORT: 5000
MONGODB_DATABASE: testdb
MONGODB_USERNAME: flask
MONGODB_PASSWORD: flask123
MONGODB_HOSTNAME: mongodb
depends_on:
- mongodb
networks:
- frontend
- backend
mongodb:
container_name: mongodb
image: mongo:4.0.8
restart: unless-stopped
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- mongodbdata:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: test
MONGO_INITDB_ROOT_PASSWORD: test123
MONGO_INITDB_DATABASE: testdb
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
networks:
- backend
mongoku:
container_name: mongoku
image: huggingface/mongoku:1.3.0
ports:
- "3100:3100"
environment:
MONGOKU_DEFAULT_HOST: "mongodb://test:test123@mongodb:27017"
depends_on:
- mongodb
networks:
- backend
- frontend
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
mongodbdata:
driver: local