-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1009 Bytes
/
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
version: '3'
services:
# shre-gui:
# container_name: shre-gui
# build: ./gui
# ports:
# - "80:80"
# depends_on:
# - shre-api
# networks:
# - shre-network
#
# shre-api:
# container_name: shre-api
# restart: always
# build:
# context: shre-api
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# depends_on:
# - shre-redis
# - shre-mongodb
# networks:
# - shre-network
shre-redis:
container_name: shre-redis
image: redis:5
ports:
- "36379:6379"
restart: always
networks:
- shre-network
shre-mongodb:
container_name: shre-mongodb
image: mongo:4.4
restart: always
environment:
MONGO_DATA_DIR: /data/db
MONGO_LOG_DIR: /dev/null
volumes:
- shre-mongo-data:/data/db
ports:
- "37017:27017"
#command: mongod --logpath=/dev/null # --quiet
command: mongod
networks:
- shre-network
volumes:
shre-mongo-data:
networks:
shre-network: