services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
# ports:
# - "9443:9443" # 웹 UI
# - "9000:9000" # Edge Agent
volumes:
- ./portainer_data:/data # Portainer 데이터 유지
- /var/run/docker.sock:/var/run/docker.sock # Docker 제어를 위한 소켓 공유
networks:
- proxy-network
watchtower:
image: containrrr/watchtower:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: Asia/Seoul
WATCHTOWER_CLEANUP: 'true'
WATCHTOWER_POLL_INTERVAL: 300
restart: unless-stopped
networks:
proxy-network:
driver: bridge
external: true