This commit is contained in:
2025-02-09 12:24:01 +02:00
parent 8ae69e9064
commit c8f735d744
7 changed files with 17 additions and 15 deletions

View File

@@ -14,9 +14,11 @@ services:
depends_on:
db:
condition: service_healthy
networks:
- ${PRIVATEBINDB_NETWORk_ID}
db:
image: ${PRIVATEBINDB_IMAGE}:${PRIVATEBINDB_TAG}
container_name: ${PRIVATEBINDB_CONTAINER_NAME}
restart: ${PRIVATEBINDB_RESTART_POLICY}
networks:
- ${PRIVATEBIN_NETWORk_ID}
- ${PRIVATEBINDB_NETWORk_ID}

View File

@@ -2,8 +2,8 @@ name: privatebin
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
- ../../compose/networks/${PRIVATEBIN_NETWORk_ID}.yaml
- ../../compose/networks/${PRIVATEBINDB_NETWORk_ID}.yaml
#################### SERVICES ####################
- ../../compose/postgres.yaml
- ../../compose/privatebin.yaml

View File

@@ -2,7 +2,6 @@ name: privatebin
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
- ../../compose/networks/${PRIVATEBIN_NETWORk_ID}.yaml
#################### SERVICES ####################
- ../../compose/privatebin.yaml

View File

@@ -2,6 +2,6 @@ name: privatebin
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/${PRIVATEBIN_NETWORk_ID}.yaml
#################### SERVICES ####################
- ../../compose/privatebin.yaml

View File

@@ -2,8 +2,8 @@ name: privatebin
# Docker Compose v2.20 or greater required to use "include"
include:
#################### NETWORKS ####################
- ../../compose/networks/proxy.yaml
- ../../compose/networks/socket-proxy.yaml
- ../../compose/networks/${PRIVATEBIN_NETWORk_ID}.yaml
- ../../compose/networks/${PRIVATEBINDB_NETWORk_ID}.yaml
#################### SERVICES ####################
- ../../compose/postgres.yaml
- ../../compose/privatebin.yaml

7
docker/env/privatebin-db.env vendored Normal file
View File

@@ -0,0 +1,7 @@
PRIVATEBINDB_NETWORk_ID=backend
##### Privatebin DB Container
PRIVATEBINDB_CONTAINER_NAME=yeetfiledb
PRIVATEBINDB_IMAGE=postgres
PRIVATEBINDB_TAG=16-alpine
PRIVATEBINDB_RESTART_POLICY=unless-stopped

View File

@@ -1,15 +1,9 @@
PRIVATEBIN_NETWORk_ID=proxy
PRIVATEBIN_HOSTNAME=privatebin
##### YeetFile Container
##### Privatebin 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