-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.15 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
version: '3.1'
services:
proxy_flask:
build:
context: .
dockerfile: Dockerfile_proxy
container_name: proxy_flask
mem_limit: 40m
memswap_limit: 300m
mem_swappiness: 80
restart: unless-stopped
ports:
- 4999:4999
mongo:
image: mongo:8
restart: unless-stopped
container_name: mongo_movies
mem_limit: 50m
memswap_limit: 300m
mem_swappiness: 80
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
networks:
- mongonet
volumes:
- dbdata:/data/db
mongo-express:
image: mongo-express
restart: unless-stopped
container_name: mongo_ui
ports:
- 8082:8081
mem_limit: 40m
memswap_limit: 300m
mem_swappiness: 60
environment:
ME_CONFIG_MONGODB_ENABLE_ADMIN: 'True'
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_BASICAUTH: 'false'
ME_CONFIG_MONGODB_URL: mongodb://root:password@mongo_movies:27017/
networks:
- mongonet
volumes:
dbdata:
driver: local
networks:
mongonet:
driver: bridge