chore : restart for docker install

Mx-server 跟随 docker 一起启动?
This commit is contained in:
Timochan
2022-05-24 18:45:58 +08:00
committed by
parent 0a26299083
commit 2e722e4ab4

View File

@@ -8,10 +8,8 @@ services:
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
restart: 'on-failure'
volumes:
- ./data/mx-space:/root/.mx-space
- ./data/mx-space/node_modules:/root/.node_modules
ports:
- '2333:2333'
depends_on:
@@ -22,6 +20,7 @@ services:
- redis
networks:
- app-network
restart: always
mongo:
container_name: mongo
@@ -32,7 +31,7 @@ services:
- '3344:27017'
networks:
- app-network
restart: always
redis:
image: redis
container_name: redis
@@ -41,6 +40,8 @@ services:
- '3333:6379'
networks:
- app-network
restart: always
networks:
app-network:
driver: bridge