networks:
  default:
    enable_ipv6: true

volumes:
  hastes:
    driver: local

services:
  server:
    image: mtudury/hastepad:0.9.1
    restart: unless-stopped
    ports:
      - "3003:7777"
    volumes:
      - hastes:/usr/src/app/data
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.gnoushaste.entryPoints=websecure"
      - "traefik.http.routers.gnoushaste.rule=Host(`haste.gnous.eu`)"
      - "traefik.http.routers.gnoushaste.tls=true"
      - "traefik.http.routers.gnoushaste.tls.certresolver=defaultacme"
      - "traefik.http.routers.gnoushaste.middlewares=proxyHeader@file,proxyError@file"
    env_file:
      - path: .env
        required: false