expose mongodb and make DB and logs persistent

This commit is contained in:
miaoski
2020-04-12 14:09:29 +02:00
parent 3b760ef772
commit c91e6255ef
4 changed files with 4 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
log/
mongodb/

View File

@@ -6,10 +6,12 @@ services:
container_name: hss container_name: hss
volumes: volumes:
- ./hss:/mnt/hss - ./hss:/mnt/hss
- ./mongodb:/var/lib/mongodb
environment: environment:
- MME_IP=172.18.0.3 - MME_IP=172.18.0.3
ports: ports:
- "3000:3000" - "3000:3000"
- "27017:27017"
networks: networks:
default: default:
ipv4_address: 172.18.0.2 ipv4_address: 172.18.0.2

0
log/.keep Normal file
View File

0
mongodb/.keep Normal file
View File