2021-09-02 18:01:03 +02:00

48 lines
1.2 KiB
YAML

---
version: "3.8"
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
restart: unless-stopped
network_mode: bridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/docker/portainer:/data
ports:
- 8000:8000
- 9000:9000
labels:
- com.centurylinklabs.watchtower.enable=true
vscode:
image: ghcr.io/linuxserver/code-server:latest
container_name: vscode
network_mode: bridge
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
- PASSWORD=bTWsTrs5uyuJjz6PG6
- SUDO_PASSWORD=TKMSajXxJ9Pj9uDFe4
volumes:
- ~/docker/vscode:/config
- ~/docker:/config/workspace/server
ports:
- 8443:8443
labels:
- com.centurylinklabs.watchtower.enable=true
watchtower:
container_name: watchtower
image: containrrr/watchtower:latest
restart: unless-stopped
network_mode: bridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Europe/Amsterdam
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=86400
- WATCHTOWER_LABEL_ENABLE=true