2
0
Fork 0
backend/docker-compose.yml

41 lines
770 B
YAML
Raw Normal View History

2019-02-10 18:56:49 +08:00
version: "3"
services:
pg:
build: ./postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=
- POSTGRES_DB=core
ports:
- "5432:5432" # Close this for production
networks:
- pgnet
nats:
image: nats:latest
ports: # Close these for production
- "4222:4222"
- "6222:6222"
- "8222:8222"
networks:
- natsnet
core:
build: ./backend-core
restart: unless-stopped
command: -listen :10200 -postgres postgresql://root@pg:5432/core?sslmode=disable
ports:
- "10200:10200"
networks:
- pgnet
2019-02-10 20:19:38 +08:00
signal:
build: ./backend-signal
restart: unless-stopped
environment:
- PORT=10201
ports:
- "10201:10201"
2019-02-10 18:56:49 +08:00
networks:
pgnet:
natsnet: