Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- rdbms:
- image: postgres:10.2
- container_name: "justgo-postgres"
- restart: always
- volumes:
- - /var/lib/postgresql/data
- environment:
- - POSTGRES_DB=justgo_db
- - POSTGRES_PASSWORD=secret
- ports:
- - 5432:5432
- consul:
- command: -server -bootstrap -rejoin
- image: progrium/consul:latest
- ports:
- - "8300:8300"
- - "8400:8400"
- - "8500:8500"
- - "8600:53/udp"
- micro:
- command: --registry_address=consul:8500 --api_handler=rpc api
- image: microhq/micro:latest
- ports:
- - "8080:8080"
- user-api:
- build: ./api/user-api
- command: --registry_address=consul:8500
- links:
- - consul
- - user
- user:
- build: ./srv/user
- command: --registry_address=consul:8500
- auth:
- build: ./srv/auth
- command: --registry_address=consul:8500
Add Comment
Please, Sign In to add comment