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: