Restart always + portainer

This commit is contained in:
Aleksander Cynarski 2018-09-29 13:01:06 +02:00
parent d5e78f207d
commit 8d55815757

View File

@ -2,8 +2,9 @@ version: '2'
services: services:
consul: consul:
image: consul image: consul
restart: always
container_name: consul_elena container_name: consul_elena
command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev -domain para
environment: environment:
SERVICE_8400_NAME: consul SERVICE_8400_NAME: consul
SERVICE_8500_NAME: consul SERVICE_8500_NAME: consul
@ -17,6 +18,7 @@ services:
- "8600:8600/udp" - "8600:8600/udp"
registrator: registrator:
restart: always
container_name: registrator_elena container_name: registrator_elena
depends_on: depends_on:
- consul - consul
@ -29,11 +31,16 @@ services:
environment: environment:
SERVICE_NAME: registrator SERVICE_NAME: registrator
mailhog: portainer:
image: mailhog/mailhog:latest restart: always
container_name: mailhog container_name: portainer_elena
hostname: mailhog image: portainer/portainer
environment: ports:
SERVICE_1025_NAME: mailhog - "9000:9000"
SERVICE_8025_NAME: mailhog command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data: