demo 启动顺序控制

develop
pnoker 4 years ago
parent 7f3c69fad1
commit 9fffc943d7

@ -1,3 +1 @@
node_modules
public
src

@ -14,12 +14,17 @@
# limitations under the License.
#
FROM nginx:1.18.0
MAINTAINER pnoker pnokers.icloud.com
FROM pnoker/alpine-nginx:1.18.0
MAINTAINER pnoker pnokers@icloud.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY ./dc3/ssl/ /etc/ssl/
COPY ./dc3/nginx/ /etc/nginx/
COPY ./dc3/conf.crt/ /etc/nginx/conf.crt/
COPY ./dist/ /usr/share/nginx/html/
COPY ./dc3/dependencies/ssl/ /etc/ssl/
COPY ./dc3/dependencies/conf.crt/ /etc/nginx/conf.crt/
EXPOSE 443
VOLUME /var/log/nginx
CMD /bin/wait-for dc3-auth:8300 dc3-manager:8400 dc3-data:8500 -t 5 -- nginx -g 'daemon off;'

@ -1,4 +1,4 @@
version: '3.3'
version: '3'
services:
web:
@ -8,15 +8,19 @@ services:
image: registry.cn-beijing.aliyuncs.com/dc3/dc3-web:1.0
restart: always
ports:
- 80:80
- 443:443
container_name: dc3-web
hostname: dc3-web
volumes:
- nginx:/var/log/nginx
networks:
dc3net:
aliases:
- dc3-web
volumes:
nginx:
networks:
dc3net:
driver: 'bridge'

Loading…
Cancel
Save