mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

docker-compose query #31

Closed ironicbadger closed 3 years ago

ironicbadger commented 3 years ago
  ktz-pastebin:
    image: mkaczanowski/pastebin
    container_name: ktz-pastebin
    volumes:
      - /appdata/ktz_pastebin:/var/lib/pastebin
    labels:
      - traefik.enable=true
      - traefik.http.routers.ktzpaste.rule=Host(`paste.domain.com`)
      - traefik.http.routers.ktzpaste.entrypoints=websecure
      - traefik.http.routers.ktzpaste.tls.certresolver=cloudflare
      - traefik.http.services.ktzpaste.loadbalancer.server.port=8000
    command:
      - --address localhost --port 8000 --db /var/lib/pastebin/ --uri https://paste.domain.com
    restart: unless-stopped

produces

2021-08-04T19:47:32.141533880Z error: Found argument '--address localhost --port 8000 --db /var/lib/pastebin/ --uri https://paste.domain.com' which wasn't expected, or isn't valid in this context
2021-08-04T19:47:32.141562500Z  Did you mean --address?
2021-08-04T19:47:32.141567730Z
2021-08-04T19:47:32.141571600Z USAGE:
2021-08-04T19:47:32.141575300Z     pastebin --address <address>
2021-08-04T19:47:32.141579200Z
2021-08-04T19:47:32.141582670Z For more information try --help
ironicbadger commented 3 years ago

Typo! An extra - in command.