Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.8"
- #x-gpu-settings: &gpu-settings
- # deploy:
- # resources:
- # reservations:
- # devices:
- # - driver: nvidia
- # count: all
- # capabilities: [ gpu ]
- x-default-env: &default-env
- TZ: "Europe/Brussels"
- PUID: 1000
- PGID: 1000
- x-logging: &logging
- logging:
- driver: json-file
- options:
- max-size: 1m
- x-default: &default
- <<: *logging
- restart: unless-stopped
- networks:
- - default
- services:
- portainer:
- container_name: portainer
- image: portainer/portainer-ce:latest
- <<: *default
- ports:
- - 9080:9000
- - 9443:9443
- - 8777:8000
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- - portainer_data:/data
- networks:
- - default
- labels:
- - "traefik.http.routers.portainer.rule=Host(`portainer.laptop.local`)"
- - "traefik.http.services.portainer.loadbalancer.server.port=9000"
- traefik:
- container_name: traefik
- labels:
- - "traefik.http.routers.traefik.rule=Host(`traefik.laptop.local`)"
- - "traefik.http.services.traefik.loadbalancer.server.port=8080"
- image: traefik:v2.10
- command:
- - "--api.insecure=true"
- - "--providers.docker"
- - "--log.level=INFO"
- - "--accesslog=true"
- ports:
- - 80:80
- - 443:443
- - 8080:8080
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock:ro
- - ./traefik/:/etc/traefik/
- <<: *default
- syncthing:
- container_name: syncthing
- hostname: jarivm-laptop
- image: syncthing/syncthing
- volumes:
- - /home/jarivm/syncthing:/var/syncthing
- - /home/jarivm/Repos:/var/syncthing/Repos
- <<: *logging
- restart: unless-stopped
- network_mode: host
- environment:
- <<: *default-env
- labels:
- - "traefik.http.routers.syncthing.rule=Host(`syncthing`)"
- - "traefik.http.services.syncthing.loadbalancer.server.port=8384"
- volumes:
- portainer_data:
- networks:
- default:
- driver: bridge
- name: housekeeping
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement