Restart always + portainer
This commit is contained in:
parent
d5e78f207d
commit
8d55815757
@ -2,8 +2,9 @@ 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
|
||||
command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn -datacenter dev -domain para
|
||||
environment:
|
||||
SERVICE_8400_NAME: consul
|
||||
SERVICE_8500_NAME: consul
|
||||
@ -17,6 +18,7 @@ services:
|
||||
- "8600:8600/udp"
|
||||
|
||||
registrator:
|
||||
restart: always
|
||||
container_name: registrator_elena
|
||||
depends_on:
|
||||
- consul
|
||||
@ -29,11 +31,16 @@ services:
|
||||
environment:
|
||||
SERVICE_NAME: registrator
|
||||
|
||||
mailhog:
|
||||
image: mailhog/mailhog:latest
|
||||
container_name: mailhog
|
||||
hostname: mailhog
|
||||
environment:
|
||||
SERVICE_1025_NAME: mailhog
|
||||
SERVICE_8025_NAME: mailhog
|
||||
portainer:
|
||||
restart: always
|
||||
container_name: portainer_elena
|
||||
image: portainer/portainer
|
||||
ports:
|
||||
- "9000:9000"
|
||||
command: -H unix:///var/run/docker.sock
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- portainer_data:/data
|
||||
|
||||
volumes:
|
||||
portainer_data:
|
||||
|
Loading…
Reference in New Issue
Block a user