Compare commits

..

4 Commits

Author SHA1 Message Date
0794706f54 edited 2025-02-09 00:33:42 +02:00
93ab81eada change to external network 2025-02-09 00:31:45 +02:00
2ab0862005 edited 2025-02-09 00:31:07 +02:00
fdb989c4ff rename file 2025-02-09 00:29:01 +02:00
18 changed files with 48 additions and 34 deletions

View File

@@ -14,6 +14,8 @@ services:
## HTTP Services ## HTTP Services
- "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.service=${YEETFILE_HOSTNAME}-svc" - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.service=${YEETFILE_HOSTNAME}-svc"
- "traefik.http.services.${YEETFILE_HOSTNAME}-svc.loadbalancer.server.port=8090" - "traefik.http.services.${YEETFILE_HOSTNAME}-svc.loadbalancer.server.port=8090"
networks:
- ${YEETFILEDB_NETWORk_ID}
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@@ -31,5 +33,5 @@ services:
healthcheck: healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ] test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 3s interval: 3s
networks: networks:
- ${YEETFILE_NETWORk_ID} - ${YEETFILEDB_NETWORk_ID}

View File

@@ -1,8 +1,9 @@
name: yeetfile
# Docker Compose v2.20 or greater required to use "include" # Docker Compose v2.20 or greater required to use "include"
include: include:
#################### NETWORKS #################### #################### NETWORKS ####################
- ../../compose/networks/proxy.yaml - ../../compose/networks/${YEETFILE_NETWORk_ID}.yaml
- ../../compose/networks/socket-proxy.yaml - ../../compose/networks/${YEETFILEDB_NETWORk_ID}.yaml
#################### SERVICES #################### #################### SERVICES ####################
- ../../compose/postgres.yaml - ../../compose/postgres.yaml
- ../../compose/yeetfile.yaml - ../../compose/yeetfile.yaml

View File

@@ -1 +1,6 @@
docker compose --env-file ../../env/.env.stack.yeetfile --env-file ../../env/.env.yeetfile --env-file ../../env/.env.common config #docker create network -d brigde proxy
#docker create network -d bridge backend
docker compose --env-file ../../env/YeetFile-stack.env \
--env-file ../../env/YeetFile-db.env \
--env-file ../../env/YeetFile.env \
--env-file ../../env/common.env config

View File

@@ -8,7 +8,7 @@ services:
- "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.entrypoints=https" - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.entrypoints=https"
- "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.rule=Host(`${YEETFILE_HOSTNAME}.$DOMAINNAME1`)" - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.rule=Host(`${YEETFILE_HOSTNAME}.$DOMAINNAME1`)"
## Middlewares ## Middlewares
# - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.middlewares=chain-authelia@file" # - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.middlewares=chain-authentik@file"
- "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.middlewares=chain-no-auth@file" - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.middlewares=chain-no-auth@file"
## HTTP Services ## HTTP Services
- "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.service=${YEETFILE_HOSTNAME}-svc" - "traefik.http.routers.${YEETFILE_HOSTNAME}-rtr.service=${YEETFILE_HOSTNAME}-svc"

View File

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

View File

@@ -1 +1,2 @@
docker compose --env-file ../../env/.env.stack.yeetfile --env-file ../../env/.env.common config #docker create network -d brigde proxy
docker compose --env-file ../../env/YeetFile-stack.env --env-file ../../env/common.env config

View File

@@ -1,7 +1,8 @@
name: yeetfile
# Docker Compose v2.20 or greater required to use "include" # Docker Compose v2.20 or greater required to use "include"
include: include:
#################### NETWORKS #################### #################### NETWORKS ####################
- ../compose/networks/proxy.yaml - ../compose/networks/${YEETFILE_NETWORk_ID}.yaml
- ../compose/networks/socket-proxy.yaml - ../compose/networks/${YEETFILEDB_NETWORk_ID}.yaml
#################### SERVICES #################### #################### SERVICES ####################
- ../compose/yeetfile.yaml - ../compose/yeetfile.yaml

View File

@@ -1 +1,2 @@
docker compose --env-file ../env/.env.stack.yeetfile --env-file ../env/.env.common config #docker create network -d bridge yeetfile
docker compose --env-file ../env/YeetFile-stack.env --env-file ../env/common.env config

View File

@@ -1,9 +1,9 @@
name: yeetfile
# Docker Compose v2.20 or greater required to use "include" # Docker Compose v2.20 or greater required to use "include"
include: include:
#################### NETWORKS #################### #################### NETWORKS ####################
- ../compose/networks/proxy.yaml - ../../compose/networks/${YEETFILE_NETWORk_ID}.yaml
- ../compose/networks/socket-proxy.yaml
#################### SERVICES #################### #################### SERVICES ####################
- ../compose/postgres.yaml - ../../compose/postgres.yaml
- ../compose/yeetfile.yaml - ../../compose/yeetfile.yaml

View File

@@ -1 +1,6 @@
docker compose --env-file ../../env/.env.stack.yeetfile --env-file ../../env/.env.yeetfile --env-file ../../env/.env.common config #docker create network -d bridge yeetfile
#docker create network -d bridge backend
docker compose --env-file ../../env/YeetFile-stack.env \
--env-file ../../env/YeetFile.env \
--env-file ../../env/YeetFile-db.env \
--env-file ../../env/common.env config

View File

@@ -1,4 +1,4 @@
networks: networks:
backend: backend:
name: backend name: backend
driver: bridge external: true

View File

@@ -1,4 +1,4 @@
networks: networks:
proxy: proxy:
name: proxy name: proxy
driver: bridge external: true

View File

@@ -10,11 +10,10 @@ services:
#ports: #ports:
# - 8090:${YEETFILE_PORT:-8090} # - 8090:${YEETFILE_PORT:-8090}
environment: environment:
UID: ${UID:-1000} - UID=${UID:-1000}
GID: ${GID:-1000} - GID=${GID:-1000}
TZ: ${TZ} - TZ=${TZ}
YEETFILE_SERVER_SECRET: 2N1oTtwOHTyEbTFtz0yDLuzq3DhgjIWmSKw4gNcH8Vk=
env_file: env_file:
- path: ../env/.env.yeetfile - path: ../env/YeetFile.env
volumes: volumes:
- ${DOCKERDIR}/yeetfile/uploads:/app/uploads - ${DOCKERDIR}/yeetfile/uploads:/app/uploads

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

@@ -0,0 +1,7 @@
YEETFILEDB_NETWORk_ID=backend
##### YeetFile DB Container
YEETFILEDB_CONTAINER_NAME=yeetfiledb
YEETFILEDB_IMAGE=postgres
YEETFILEDB_TAG=16-alpine
YEETFILEDB_RESTART_POLICY=unless-stopped

View File

@@ -1,5 +1,3 @@
COMPOSE_PROJECT_NAME=yeetfile
YEETFILE_NETWORk_ID=proxy YEETFILE_NETWORk_ID=proxy
YEETFILE_HOSTNAME=yeetfile YEETFILE_HOSTNAME=yeetfile
@@ -8,9 +6,3 @@ YEETFILE_CONTAINER_NAME=yeetfile
YEETFILE_IMAGE=ghcr.io/benbusby/yeetfile YEETFILE_IMAGE=ghcr.io/benbusby/yeetfile
YEETFILE_TAG=latest YEETFILE_TAG=latest
YEETFILE_RESTART_POLICY=unless-stopped YEETFILE_RESTART_POLICY=unless-stopped
##### YeetFile DB Container
YEETFILEDB_CONTAINER_NAME=yeetfiledb
YEETFILEDB_IMAGE=postgres
YEETFILEDB_TAG=16-alpine
YEETFILEDB_RESTART_POLICY=unless-stopped

View File

@@ -34,7 +34,7 @@ YEETFILE_DEFAULT_USER_SEND=-1
# The secret value used for encrypting user password hints # The secret value used for encrypting user password hints
# 32-byte value, base64 encoded # 32-byte value, base64 encoded
#YEETFILE_SERVER_SECRET=2N1oTtwOHTyEbTFtz0yDLuzq3DhgjIWmSKw4gNcH8Vk= YEETFILE_SERVER_SECRET=2N1oTtwOHTyEbTFtz0yDLuzq3DhgjIWmSKw4gNcH8Vk=
# The domain that the YeetFile instance is hosted on # The domain that the YeetFile instance is hosted on
# A valid domain string beginning with http:// or https:// # A valid domain string beginning with http:// or https://

View File

@@ -67,7 +67,7 @@ services:
- --providers.docker.exposedByDefault=false - --providers.docker.exposedByDefault=false
# - --providers.redis=true # - --providers.redis=true
# - --providers.redis.endpoints=redis:6379 # - --providers.redis.endpoints=redis:6379
# - --entrypoints.https.http.middlewares=middlewares-crowdsec-bouncer@file - --entrypoints.https.http.middlewares=middlewares-crowdsec-bouncer@file
- --entrypoints.https.http.tls.options=tls-opts@file - --entrypoints.https.http.tls.options=tls-opts@file
# Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services # Add dns-cloudflare as default certresolver for all services. Also enables TLS and no need to specify on individual services
- --entrypoints.https.http.tls.certresolver=${CERTRESOLVER} - --entrypoints.https.http.tls.certresolver=${CERTRESOLVER}