Initial commit

This commit is contained in:
2025-02-07 10:19:13 +02:00
parent c3ee1fdcc9
commit 3e5169cba5
15 changed files with 400 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
services:
privatebin:
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.entrypoints=https"
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.rule=Host(`${PRIVATEBIN_HOSTNAME}.$DOMAINNAME1`)"
## Middlewares
# - "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.middlewares=chain-authelia@file"
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.middlewares=chain-no-auth@file"
## HTTP Services
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.service=${PRIVATEBIN_HOSTNAME}-svc"
- "traefik.http.services.${PRIVATEBIN_HOSTNAME}-svc.loadbalancer.server.port=8080"
depends_on:
db:
condition: service_healthy
db:
image: ${PRIVATEBINDB_IMAGE}:${PRIVATEBINDB_TAG}
container_name: ${PRIVATEBINDB_CONTAINER_NAME}
restart: ${PRIVATEBINDB_RESTART_POLICY}
networks:
- ${PRIVATEBIN_NETWORk_ID}

View File

@@ -0,0 +1,9 @@
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
#################### SERVICES ####################
- ../../compose/postgres.yaml
- ../../compose/privatebin.yaml

View File

@@ -0,0 +1 @@
docker compose --env-file ../../env/.env.stack.privatebin --env-file ../../env/.env.common config

View File

@@ -0,0 +1,13 @@
services:
privatebin:
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.entrypoints=https"
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.rule=Host(`${PRIVATEBIN_HOSTNAME}.$DOMAINNAME1`)"
## Middlewares
# - "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.middlewares=chain-authelia@file"
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.middlewares=chain-no-auth@file"
## HTTP Services
- "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.service=${PRIVATEBIN_HOSTNAME}-svc"
- "traefik.http.services.${PRIVATEBIN_HOSTNAME}-svc.loadbalancer.server.port=8080"

View File

@@ -0,0 +1,7 @@
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
#################### SERVICES ####################
- ../../compose/privatebin.yaml

View File

@@ -0,0 +1 @@
docker compose --env-file ../../env/.env.stack.privatebin --env-file ../../env/.env.common config

View File

@@ -0,0 +1,4 @@
services:
privatebin:
volumes:
- ${DOCKERDIR}/private-bin/conf.php:/srv/cfg/conf.php:ro

View File

@@ -0,0 +1,7 @@
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
#################### SERVICES ####################
- ../../compose/privatebin.yaml

1
docker/PrivateBin/dcc.sh Executable file
View File

@@ -0,0 +1 @@
docker compose --env-file ../env/.env.stack.privatebin --env-file ../env/.env.common config

View File

@@ -0,0 +1,13 @@
services:
privatebin:
volumes:
- ${DOCKERDIR}/private-bin/conf.php:/srv/cfg/conf.php:ro
depends_on:
db:
condition: service_healthy
db:
image: ${PRIVATEBINDB_IMAGE}:${PRIVATEBINDB_TAG}
container_name: ${PRIVATEBINDB_CONTAINER_NAME}
restart: ${PRIVATEBINDB_RESTART_POLICY}
networks:
- ${PRIVATEBIN_NETWORk_ID}

View File

@@ -0,0 +1,8 @@
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
#################### SERVICES ####################
- ../../compose/postgres.yaml
- ../../compose/privatebin.yaml

View File

@@ -0,0 +1 @@
docker compose --env-file ../../env/.env.stack.privatebin --env-file ../../env/.env.common config

View File

@@ -0,0 +1,15 @@
services:
privatebin:
image: ${PRIVATEBIN_IMAGE}:${PRIVATEBIN_TAG}
container_name: ${PRIVATEBIN_CONTAINER_NAME}
restart: ${PRIVATEBIN_RESTART_POLICY}
security_opt:
- no-new-privileges:true
networks:
- ${PRIVATEBIN_NETWORk_ID}
read_only: true
user: "${UID}:${GID}" # Run the container with the UID:GID of your Docker user
# ports:
# - 8080:8080
volumes:
- ${DOCKERDIR}/private-bin:/srv/data

17
docker/env/.env.stack.privatebin vendored Normal file
View File

@@ -0,0 +1,17 @@
COMPOSE_PROJECT_NAME=privatebin
PRIVATEBIN_NETWORk_ID=proxy
PRIVATEBIN_HOSTNAME=privatebin
##### YeetFile Container
PRIVATEBIN_CONTAINER_NAME=privatebin
PRIVATEBIN_IMAGE=privatebin/nginx-fpm-alpine
#PRIVATEBIN_IMAGE=privatebin/pdo
PRIVATEBIN_TAG=stable
PRIVATEBIN_RESTART_POLICY=unless-stopped
##### YeetFile DB Container
PRIVATEBINDB_CONTAINER_NAME=yeetfiledb
PRIVATEBINDB_IMAGE=postgres
PRIVATEBINDB_TAG=16-alpine
PRIVATEBINDB_RESTART_POLICY=unless-stopped