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