diff --git a/forgejo-runner/docker-compose.yml b/forgejo-runner/docker-compose.yml new file mode 100644 index 0000000..7dac225 --- /dev/null +++ b/forgejo-runner/docker-compose.yml @@ -0,0 +1,29 @@ +services: + docker-in-docker: + image: docker:dind + container_name: 'forgejo-dind' + privileged: 'true' + command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false'] + restart: 'unless-stopped' + + forgejo-runner: + image: 'code.forgejo.org/forgejo/runner:3.5.1' + container_name: 'forgejo-runner' + links: + - docker-in-docker + depends_on: + docker-in-docker: + condition: service_started + # user: 1001:1001 + environment: + DOCKER_HOST: tcp://docker-in-docker:2375 + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock + restart: 'unless-stopped' + privileged: 'true' + command: '/bin/sh -c "sleep 5; forgejo-runner daemon"' + # command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' + +volumes: + forgejo-runner-data: diff --git a/peertube/docker-compose.yml b/peertube/docker-compose.yml index 885c74f..f59de29 100644 --- a/peertube/docker-compose.yml +++ b/peertube/docker-compose.yml @@ -1,6 +1,7 @@ services: peertube: image: chocobozzz/peertube:production-bookworm + container_name: peertube # build: # context: . # args: @@ -26,6 +27,7 @@ services: redis: image: valkey/valkey:7.2-alpine + container_name: peertube-valkey volumes: - ./docker-volume/redis:/data restart: "always" diff --git a/privatebin/docker-compose.yml b/privatebin/docker-compose.yml new file mode 100644 index 0000000..29be08a --- /dev/null +++ b/privatebin/docker-compose.yml @@ -0,0 +1,27 @@ +services: + privatebin: + image: privatebin/nginx-fpm-alpine:latest + container_name: privatebin + user: "65534:82" + read_only: false # not in compose 3.0 documentation but appears supported based + # on issues for docker compose in Github + volumes: + - privatebin-data:/srv/data # data volume for pastes allows pastes + # to persist after container stop or restart + - './cfg:/srv/cfg:ro' # second volume for custom configuration file + ports: + # To update: Be sure to use a reverse proxy for HTTPS termination + # in front of it for production environments. + # ie, The Nginx setup supports only HTTP, so make sure that you run + # another webserver as reverse proxy in front of this for HTTPS + #offloading and reducing the attack surface on your TLS stack. The + # Nginx in this image is set up to deflate/gzip text content. + - 10002:8080 + restart: always + +networks: + default: + name: privatebin + +volumes: + privatebin-data: