Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.2'
- networks:
- example:
- ipam:
- driver: default
- config:
- - subnet: 172.20.0.0/16
- 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:
- image: consul:1.0.6
- networks:
- example:
- ipv4_address: 172.20.0.2
- environment:
- CONSUL_ALLOW_PRIVILEGED_PORTS: ""
- ports:
- - "8300:8300"
- - "8301:8301"
- - "8301:8301/udp"
- - "8302:8302"
- - "8302:8302/udp"
- - "8400:8400"
- - "8500:8500"
- - "8600:53"
- - "8600:53/udp"
- command: ['agent', '-server', '-bootstrap-expect', '1',
- '-client', '0.0.0.0', '-advertise', '172.20.0.1',
- '-dns-port', '53', '-recursor', '8.8.8.8',
- '-ui']
- micro:
- networks:
- - example
- dns: 172.20.0.1
- command: ['-registry_address', 'consul.service.consul', 'api','-address', '0.0.0.0:8090']
- image: microhq/micro:latest
- ports:
- - "8090:8090"
- depends_on:
- - consul
- user-api:
- networks:
- - example
- dns: 172.20.0.1
- build: ./api/user-api
- command: ['-registry_address', 'consul.service.consul']
- depends_on:
- - consul
- user:
- networks:
- - example
- dns: 172.20.0.1
- build: ./srv/user
- command: ['-registry_address', 'consul.service.consul']
- depends_on:
- - consul
- auth:
- networks:
- - example
- dns: 172.20.0.1
- build: ./srv/auth
- command: ['-registry_address', 'consul.service.consul']
- depends_on:
- - consul
- email:
- networks:
- - example
- dns: 172.20.0.1
- build: ./srv/email
- command: ['-registry_address', 'consul.service.consul']
- depends_on:
- - consul
Add Comment
Please, Sign In to add comment