45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: '2'
|
|
services:
|
|
consul:
|
|
image: consul
|
|
restart: always
|
|
container_name: consul_elena
|
|
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:
|
|
restart: always
|
|
container_name: registrator_elena
|
|
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
|
|
|
|
portainer:
|
|
restart: always
|
|
container_name: portainer_elena
|
|
image: portainer/portainer
|
|
command: -H unix:///var/run/docker.sock
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- portainer_data:/data
|
|
|
|
volumes:
|
|
portainer_data:
|