|
|
@@ -4,6 +4,7 @@ services:
|
|
|
image: "registry.cn-beijing.aliyuncs.com/lscgzwd/ubuntu18.04-php7:latest"
|
|
|
restart: always
|
|
|
command: /data/docker/shell/nginx-up.sh
|
|
|
+ container_name: nginx
|
|
|
ports:
|
|
|
- "8888:80"
|
|
|
networks:
|
|
|
@@ -18,6 +19,7 @@ services:
|
|
|
mongodb:
|
|
|
restart: always
|
|
|
image: mongo:3.5
|
|
|
+ container_name: mongodb
|
|
|
volumes:
|
|
|
- /workspace/commonContainers/mongodb/:/data/
|
|
|
networks:
|
|
|
@@ -26,6 +28,7 @@ services:
|
|
|
apidoc:
|
|
|
restart: always
|
|
|
image: branchzero/yapi
|
|
|
+ container_name: apidoc
|
|
|
command: /bin/bash -c "[ ! -e /home/yapi/log/init.lock ] && npm run install-server && touch /home/yapi/log/init.lock; npm run start"
|
|
|
volumes:
|
|
|
- /workspace/commonContainers/yapi/log:/home/yapi/log
|