docker-compose

This commit is contained in:
Aleksander Cynarski 2018-06-08 15:59:49 +02:00
parent 4b2252590c
commit 2fdc6edb77

39
docker-compose.yml Normal file
View 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