fix: docker script

This commit is contained in:
Innei
2021-10-02 15:10:45 +08:00
parent 9cef745dc8
commit fd7f9c870e
6 changed files with 10 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ services:
image: innei/mx-server:latest
command: node index.js --redis_host=redis --db_host=mongo --allowed_origins=${ALLOWED_ORIGINS} --jwt_secret=${JWT_SECRET}
restart: 'on-failure'
volumes:
- ./data/mx-space:/root/.mx-space
ports:
- '2333:2333'
depends_on:
@@ -21,7 +23,7 @@ services:
container_name: mongo
image: mongo
volumes:
- ./data:/data/db
- ./data/db:/data/db
ports:
- '3344:27017'
networks: