From 0ebdc1d823b79365bd2fc2e39f0df926055e28bf Mon Sep 17 00:00:00 2001 From: James Turland Date: Thu, 5 Dec 2024 13:21:45 +0000 Subject: [PATCH] privatebin --- PrivateBin/docker-compose.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PrivateBin/docker-compose.yaml diff --git a/PrivateBin/docker-compose.yaml b/PrivateBin/docker-compose.yaml new file mode 100644 index 0000000..9f9ce4e --- /dev/null +++ b/PrivateBin/docker-compose.yaml @@ -0,0 +1,29 @@ +version: '3.8' +services: + privatebin: + image: privatebin/nginx-fpm-alpine + restart: always + read_only: true + user: "1000:1000" # Run the container with the UID:GID of your Docker user + #ports: + # - "8080:8080" + volumes: + - /home/ubuntu/docker/private-bin:/srv/data + networks: + - proxy + labels: + - "traefik.enable=true" + - "traefik.docker.network=proxy" + - "traefik.http.routers.privatebin.entrypoints=http" + - "traefik.http.routers.privatebin.rule=Host(`privatebin.jimsgarage.co.uk`)" + - "traefik.http.middlewares.privatebin-https-redirect.redirectscheme.scheme=https" + - "traefik.http.routers.privatebin.middlewares=privatebin-https-redirect" + - "traefik.http.routers.privatebin-secure.entrypoints=https" + - "traefik.http.routers.privatebin-secure.rule=Host(`privatebin.jimsgarage.co.uk`)" + - "traefik.http.routers.privatebin-secure.tls=true" + - "traefik.http.routers.privatebin-secure.tls.certresolver=cloudflare" + - "traefik.http.routers.privatebin-secure.service=privatebin" + - "traefik.http.services.privatebin.loadbalancer.server.port=8080" +networks: + proxy: + external: true