Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz1273327 committed Dec 5, 2020
1 parent 71c4f5e commit 214cced
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -23,7 +9,8 @@ services:
image: postgres:latest
networks:
- rest_test

environment:
POSTGRES_PASSWORD: postgres
rest-helloworld:
image: hsz1273327/js-server:restful_c0
ports:
Expand All @@ -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:

0 comments on commit 214cced

Please sign in to comment.