summaryrefslogtreecommitdiff
path: root/playbooks/roles/bin/templates/stacks/docker-compose.yml
blob: fe52d9db32e3cdb97d825f06603faf7f5f4f78ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
  bin:
    image: machines/filestash:latest
    volumes:
      - {{ bin_base }}/volumes/data:/app/data/state/
    environment:
      - TZ={{ timezone }}
    networks:
      - proxy
    deploy:
      mode: replicated
      replicas: 1
      labels:
        - traefik.enable=true
        - traefik.swarm.network=proxy
        - traefik.http.routers.bin.tls=true
        - traefik.http.routers.bin.tls.certResolver=letsencrypt
        - traefik.http.routers.bin.rule=Host(`{{ bin_domain }}`)
        - traefik.http.routers.bin.entrypoints=websecure
        - traefik.http.services.bin.loadbalancer.server.port=8334

networks:
  proxy:
    external: true