2023-09-21 11:43:29 +02:00
|
|
|
version: '3.2'
|
|
|
|
|
2023-09-21 11:38:01 +02:00
|
|
|
services:
|
|
|
|
agent:
|
|
|
|
image: portainer/agent
|
|
|
|
container_name: portainer-agent
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
|
|
labels:
|
|
|
|
- com.centurylinklabs.watchtower.enable=true
|
|
|
|
|
|
|
|
portainer:
|
|
|
|
image: portainer/portainer-ce
|
|
|
|
container_name: portainer
|
|
|
|
restart: always
|
|
|
|
command: -H tcp://agent:9001 --tlsskipverify
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
volumes:
|
|
|
|
- portainer_data:/data
|
|
|
|
labels:
|
|
|
|
- com.centurylinklabs.watchtower.enable=true
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- default
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
portainer_data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external:
|
|
|
|
name: proxy
|