docker-compose
This commit is contained in:
parent
4b2252590c
commit
2fdc6edb77
39
docker-compose.yml
Normal file
39
docker-compose.yml
Normal file
@ -0,0 +1,39 @@
|
||||
version: '2'
|
||||
services:
|
||||
consul:
|
||||
image: consul
|
||||
container_name: consul
|
||||
command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev
|
||||
environment:
|
||||
SERVICE_8400_NAME: consul
|
||||
SERVICE_8500_NAME: consul
|
||||
SERVICE_8600_NAME: consul
|
||||
SERVICE_8301_NAME: consul
|
||||
SERVICE_8300_NAME: consul
|
||||
SERVICE_8302_NAME: consul
|
||||
ports:
|
||||
- "8400:8400"
|
||||
- "8500:8500"
|
||||
- "8600:8600/udp"
|
||||
|
||||
registrator:
|
||||
container_name: registrator
|
||||
depends_on:
|
||||
- consul
|
||||
image: gliderlabs/registrator:master
|
||||
command: -internal consul://consul:8500
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock
|
||||
links:
|
||||
- consul
|
||||
environment:
|
||||
SERVICE_NAME: registrator
|
||||
|
||||
mailhog:
|
||||
image: mailhog/mailhog:latest
|
||||
container_name: scrm-mailhog
|
||||
hostname: scrm-mailhog
|
||||
environment:
|
||||
SERVICE_1025_NAME: mailhog
|
||||
SERVICE_8025_NAME: mailhog
|
||||
|
Loading…
Reference in New Issue
Block a user