From 214cced1aa734bc4daf7962eda99977319759e66 Mon Sep 17 00:00:00 2001 From: HUANG SIZHE Date: Sat, 5 Dec 2020 09:54:47 +0800 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5682c87..69be205 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,19 +1,5 @@ version: "3.6" services: - http-reverse-proxy: - image: nginx:alpine - networks: - - rest_test - ports: - - 5000:5000 - logging: - options: - max-size: "10m" - max-file: "3" - volumes: - - ./config/nginx.conf:/etc/nginx/nginx.conf - - ./config/conf.d:/etc/nginx/conf.d - redis-channel: image: redis:latest networks: @@ -23,7 +9,8 @@ services: image: postgres:latest networks: - rest_test - + environment: + POSTGRES_PASSWORD: postgres rest-helloworld: image: hsz1273327/js-server:restful_c0 ports: @@ -44,5 +31,23 @@ services: - ./conf:/conf command: ./node_modules/.bin/babel-node server/index.js --config /conf/docker-env.json + http-reverse-proxy: + image: nginx:alpine + networks: + - rest_test + ports: + - 5000:5000 + depends_on: + - rest-helloworld + - rest-notifucation + logging: + options: + max-size: "10m" + max-file: "3" + volumes: + - ./config/nginx.conf:/etc/nginx/nginx.conf + - ./config/conf.d:/etc/nginx/conf.d + + networks: rest_test: