2 Commits

Author SHA1 Message Date
Bensuperpc c0488cced7 test 2026-07-19 15:07:30 +02:00
Bensuperpc 0f3d0b7f49 Add authelia 2026-07-05 12:56:29 +02:00
127 changed files with 812 additions and 734 deletions
+1 -3
View File
@@ -22,12 +22,10 @@ jobs:
timeout-minutes: 30
steps:
- name: "Checkout Code"
uses: actions/checkout@v7
uses: actions/checkout@v5
with:
submodules: "recursive"
fetch-depth: 0
- name: "Check compose"
run: make check
- name: "Update server image"
run: make pull
- name: "Build server"
-31
View File
@@ -1,31 +0,0 @@
name: submodule-update
on:
schedule:
- cron: '0 */8 * * *'
workflow_dispatch:
jobs:
image:
name: submodule-update
runs-on: ubuntu-latest
steps:
- name: "Checkout Code"
uses: actions/checkout@v7
with:
token: ${{ secrets.CI_TOKEN }}
repository: ${{ github.repository }}
submodules: 'recursive'
fetch-depth: 1
# Update references
- name: Git Sumbodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
# Commit and push
- name: Commit update
run: |
git config --global user.name 'Bensuperpc'
git config --global user.email 'bensuperpc@gmail.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
+5
View File
@@ -1,2 +1,7 @@
/*.tar.gz
infrastructure/services/**/env/*.env
infrastructure/services/**/config/*.env
!infrastructure/services/**/env/*.env.example
!infrastructure/services/**/config/*.env.example
+9 -1
View File
@@ -25,7 +25,15 @@
PROJECT_DIRECTORY := infrastructure
CONFIG_DIRECTORY := presets
# 7dtd minecraft satisfactory torrent
CONFIGS := torrent
CONFIGS := ia torrent tools
#DOCKER_PROFILES :=
include DockerCompose.mk
.PHONY: init
init:
@bash tools/init_secrets.sh
.PHONY: clean-secrets
clean-secrets:
@bash tools/clean_secrets.sh
+35 -152
View File
@@ -143,167 +143,81 @@ And then, caddy will generate the certificate for you and renew it automatically
| [argus.bensuperpc.org](https://argus.bensuperpc.org) | Sub | Argus for monitoring application updates |
| [searxng.bensuperpc.org](https://searxng.bensuperpc.org) | Sub | SearXNG self-hosted search engine |
| [dependency-track.bensuperpc.org](https://dependency-track.bensuperpc.org) | Sub | SBOM / vulnerability analysis |
| [wordpress.bensuperpc.org](https://wordpress.bensuperpc.org) | Sub | Wordpress website |
| [litellm.bensuperpc.org](https://litellm.bensuperpc.org) | Sub | LiteLLM llm proxy for open-webui |
| [localai.bensuperpc.org](https://localai.bensuperpc.org) | Sub | For local chatGPT with multi-backend |
[wordpress.bensuperpc.org](https://wordpress.bensuperpc.org) | Sub | Wordpress website |
[bentopdf.bensuperpc.org](https://bentopdf.bensuperpc.org) | Sub | BentoPDF |
### Configure the infrastructure
You need to configure the infrastructure with your own configuration.
You can generate a password with 32 characters:
Every service ships a `*.env.example` file. Real `*.env` files are gitignored and never committed - generate them locally with:
```sh
openssl rand -base64 32
make init
```
Or online: [passwordsgenerator.net](https://passwordsgenerator.net/)
This copies every `*.env.example``*.env` and fills in randomly generated passwords, keys and tokens (including shared values that must match across services, e.g. a service and its database). Existing `.env` files are never overwritten, so re-running it later is always safe.
After `make init`, a few things still need manual attention:
#### Caddy
For [caddy_backup.env](infrastructure/services/caddy/env/caddy_backup.env) file, you need to change the password(s) for the restic backup.
```sh
RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
```
On [caddy.env](infrastructure/services/caddy/env/caddy.env) file, you need to update some variables, like the main domain, mail domain and scheme (http or https).
Edit [caddy.env](infrastructure/services/caddy/env/caddy.env.example) to set your domain and mail address:
```sh
MAIN_DOMAIN=bensuperpc.org
MAIL_DOMAIN=bensuperpc@gmail.com
# Scheme
SCHEME=https
# ignore_loaded_certs off
AUTO_HTTPS_OPTIONS=ignore_loaded_certs
```
#### Authelia
#### Authelia - user database
For [authelia.env](infrastructure/services/authelia/env/authelia.env) file, you need to change the password(s) and secret key:
```sh
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=ht87MVnXkXhBpDkMUHqKDqdg8UGBJt+Fx5jNIqXnN2k=
AUTHELIA_SESSION_SECRET=nsvbXKGRXVZUCUkOapntlq/Zh+d75WacTK5Jgyh8zYk=
AUTHELIA_STORAGE_ENCRYPTION_KEY=aWeIT74xIhGVd9nUOr4YTToTl5rpBEbzc/fv4jemuos=
AUTHELIA_STORAGE_POSTGRES_HOST=authelia-postgres
AUTHELIA_STORAGE_POSTGRES_PORT=5432
AUTHELIA_STORAGE_POSTGRES_DATABASE=authelia_db
AUTHELIA_STORAGE_POSTGRES_USERNAME=authelia
AUTHELIA_STORAGE_POSTGRES_PASSWORD=sAdkxFW6k3GiMOrlBpl6OV76eb9cQz/uk95jmA2UpI8=
```
Same for [authelia_postgres.env](infrastructure/services/authelia/env/authelia_postgres.env) file, you need to change the password(s) and user for the database.
```sh
POSTGRES_USER=authelia
POSTGRES_PASSWORD=sAdkxFW6k3GiMOrlBpl6OV76eb9cQz/uk95jmA2UpI8=
POSTGRES_DB=authelia_db
```
You also need to update [users_database.yml](infrastructure/services/authelia/config/users_database.yml)
`make init` generates all Authelia secrets automatically. [users_database.yml](infrastructure/services/authelia/config/users_database.yml) ships with a **placeholder example user** (`bensuperpc`) - replace it with your own before starting the stack, don't just add a user next to it. Generate an argon2 hash for your password:
```sh
docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password 'MyPassword'
```
#### Dozzle
Then edit the `username`, `displayname`, `password` hash and `email` fields to match.
To generate a new user for dozzle, you can use the following command [users.yml](infrastructure/services/dozzle/config/users.yml):
#### Dozzle - user account
Generate a user entry for [users.yml](infrastructure/services/dozzle/config/users.yml):
```sh
docker run -it --rm amir20/dozzle generate bensuperpc --password mypassword --email bensuperpc@gmail.com --name "bensuperpc"
```
#### PsiTransfer
#### OpenSSH - public key
For [psitransfer.env](infrastructure/services/psitransfer/env/psitransfer.env) file, you need to change the secret key.
Replace [id_ed25519.pub](infrastructure/services/openssh/config/authorized_keys/id_ed25519.pub) with your own public SSH key.
```sh
PSITRANSFER_ADMIN_PASS=n9jLVNT9QUotTJTT91JqH4GyBTg9pvEn
```
#### Open-WebUI - Ollama model
For [projectsend_db.env](infrastructure/services/projectsend/env/projectsend_db.env) file, you need to change the password(s) and user for the database.
```sh
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
```
#### Picoshare
For [picoshare.env](infrastructure/services/picoshare/env/picoshare.env) file, you need to change the secret key.
```sh
PS_SHARED_SECRET=CBuS4DJLqIe93xF1KGYRrnhxUFBqLD2n
```
#### Dufs
For [dufs.env](infrastructure/services/dufs/env/dufs.env) file, you need to change the secret key and if you want the user name.
```sh
DUFS_AUTH="admin:heqihlOfBmJDESGFlpbPi7P7Mi6F7RkV@/:rw|@/:ro"
```
#### Stirling PDF
For [stirlingpdf.env](infrastructure/services/stirlingpdf/env/stirlingpdf.env) file, it's **completly optional**, you can change the password(s) and user.
```sh
# Enable security, optional
DOCKER_ENABLE_SECURITY=true
SECURITY_ENABLE_LOGIN=true
# Can be disabled after initial login, optional,
# default it admin:stirling
SECURITY_INITIALLOGIN_USERNAME=admin
SECURITY_INITIALLOGIN_PASSWORD=Jw9U039f5xc2mFcacvGvPD9RjwIh4DzO
```
#### OpenSSH
You can need to add/change the public ssh key [id_ed25519.pub](infrastructure/services/openssh/config/authorized_keys/id_ed25519.pub) (its my public key), also change the config/password in [openssh.env](infrastructure/services/openssh/env/openssh.env):
```sh
SUDO_ACCESS=true
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
PUBLIC_KEY_DIR=/authorized_ssh_keys
USER_PASSWORD=rdUwf36C11PLmpU9Lvq7tP5pfFBKAuCh
#PUBLIC_KEY=yourpublickey
#PUBLIC_KEY_FILE=/path/to/file
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
#USER_PASSWORD_FILE=/path/to/file
```
#### Open-WebUI
For [open-webui.env](infrastructure/services/open-webui/env/open-webui.env) file, you must change the secret key for the webui and configure its PostgreSQL backend.
```sh
WEBUI_SECRET_KEY=7d83b15a417d090ba5c6b899270a05dd215c60848354c0c7574226d6ff02f39e
```
Also update [openwebui-postgres.env](infrastructure/services/open-webui/env/openwebui-postgres.env) with your own credentials.
To download the model, through open-webui GUI or you can use the following command:
After starting the stack, pull a model via the Open-WebUI GUI or with:
```sh
docker exec -it ollama ollama run deepseek-r1:8b
```
#### Dependency-Track
#### Team Fortress 2 - Steam GSLT
For [dependency-track.env](infrastructure/services/dependency-track/env/dependency-track.env) file, you need to set the database credentials and the API server URL.
`make init` will remind you: set `SRCDS_TOKEN` in [teamfortress2.env](infrastructure/services/teamfortress2-server/teamfortress2/env/teamfortress2.env) with your token from [steamcommunity.com/dev/managegameservers](https://steamcommunity.com/dev/managegameservers).
#### Dependency-Track - first login
Default credentials are `admin` / `admin` - **change them on first login**.
#### Forgejo - installation lock
After the first-run installation wizard completes, set in [forgejo.env](infrastructure/services/forgejo/env/forgejo.env.example):
```sh
POSTGRES_USER=dtrack
POSTGRES_PASSWORD=<your_password>
POSTGRES_DB=dtrack_db
ALPINE_DATA_DIRECTORY=/data
FORGEJO__security__INSTALL_LOCK=true
```
The frontend is available at `https://dependency-track.bensuperpc.org` and the API server at `/api/*`. Default credentials are `admin` / `admin`, **change them on first login**.
### Homepage
You can change the homepage config in these files:
@@ -313,16 +227,6 @@ You can change the homepage config in these files:
- [settings.yaml](infrastructure/services/homepage/config/settings.yaml)
- [widgets.yaml](infrastructure/services/homepage/config/widgets.yaml)
### Forgejo
For Forgejo installation, you must change the password(s) and user in [forgejo_db.env](infrastructure/services/forgejo/env/forgejo_db.env) file and [forgejo.env](infrastructure/services/forgejo/env/forgejo.env) file.
Once the installation is complete, you need to set the installation lock:
```sh
FORGEJO__security__INSTALL_LOCK=true
```
### Forgejo Runner (Out of date)
```sh
@@ -386,7 +290,8 @@ ssh -p 2222 admin@bensuperpc.org
To activate the alternative webui theme (VueTorrent), you need to go in the qbittorrent settings, then in the `webui` section, check the `Use alternative webui` and add `/vuetorrent` to text field.
#### Local testing
### Local testing
If you want to test the infrastructure locally, you can add these lines in your `/etc/hosts` file:
@@ -429,29 +334,6 @@ AUTO_HTTPS_OPTIONS=ignore_loaded_certs
And remove all the `import authelia_middleware` in the caddyfiles, authelia need https to work.
#### Wordpress
For the [wordpress.env](infrastructure/services/wordpress/env/wordpress.env) file, you need to change the password and user for the database.
```sh
WORDPRESS_DB_USER=bensuperpc
WORDPRESS_DB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
```
For [wordpress_db.env](infrastructure/services/wordpress/env/wordpress_db.env) file, you need to change the password(s) and user for the database.
```sh
MARIADB_ROOT_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=lEOEf8cndnDjp84O4Uv5D9zJLJDFatLw
```
For [wordpress_backup.env](infrastructure/services/wordpress/env/wordpress_backup.env) file, you need to change the password(s) for the restic backup.
```sh
RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
```
## Sources
- [Wordpress](https://wordpress.org/)
@@ -494,6 +376,7 @@ RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
- [SearXNG](https://github.com/searxng/searxng)
- [Dependency-Track](https://dependencytrack.org/)
- [Authelia](https://www.authelia.com/)
- [BentoPDF](https://github.com/alam00000/bentopdf)
## License
+6
View File
@@ -61,3 +61,9 @@ include:
- services/satisfactory-server/docker-compose.yml
# Team Fortress 2
- services/teamfortress2-server/docker-compose.yml
# LocalAI
- services/localai/docker-compose.localai.yml
# Bentopdf
- services/bentopdf/docker-compose.bentopdf.yml
# Code-server
- services/code-server/docker-compose.vscode-server.yml
@@ -1,7 +1,7 @@
services:
# 7 days to die server
7daystodie_server:
image: vinanrra/7dtd-server:latest
image: vinanrra/7dtd-server:${SEVENDAYSTODIE_DOCKER_TAG:-latest}
container_name: 7daystodie_server
profiles:
- 7daystodie_server
@@ -30,12 +30,6 @@ services:
# - no-new-privileges:true
# cap_drop:
# - SYS_ADMIN
deploy:
resources:
limits:
memory: 16G
reservations:
memory: 4G
volumes:
7daystodie_backup:
@@ -1,19 +1,19 @@
services:
7daystodie_backup:
image: mazzolino/restic:latest
image: mazzolino/restic:${RESTIC_DOCKER_TAG:-latest}
container_name: 7daystodie_backup
profiles:
- 7daystodie_backup
depends_on:
- 7daystodie_server
restart: on-failure:7
extends:
file: ../../common.yml
service: service-base
env_file:
- ./env/7daystodie_backup.env
volumes:
- 7daystodie_backup:/mnt/restic
- 7daystodie_server_save:/data:ro
security_opt:
- no-new-privileges:true
network_mode: none
cap_drop:
- NET_ADMIN
@@ -1,14 +0,0 @@
#RUN_ON_STARTUP=true
RESTIC_REPOSITORY=/mnt/restic
RESTIC_BACKUP_SOURCES=/data
RESTIC_PASSWORD=SCY5cmu12Odca302EXabPA9jXYkCb2NN
# Backup (exuclusive with Check and Prune)
BACKUP_CRON=*/15 * * * *
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
#RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
# Check (exuclusive with Check and Prune)
#CHECK_CRON=*/15 * * * *
#RESTIC_CHECK_ARGS=--read-data-subset=40%
# Prune (exuclusive with Check and Prune)
#PRUNE_CRON=*/15 * * * *
#RESTIC_PRUNE_ARGS=
@@ -1,10 +1,10 @@
#RUN_ON_STARTUP=true
RESTIC_REPOSITORY=/mnt/restic
RESTIC_BACKUP_SOURCES=/data
RESTIC_PASSWORD=7xymiWBH4c56rlBXPXbgkxF2zw3f2AGs
RESTIC_PASSWORD=__GENERATE_7DTD_RESTIC_PASSWORD__
# Backup (exuclusive with Check and Prune)
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
BACKUP_CRON=*/15 * * * *
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
#RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
# Check (exuclusive with Check and Prune)
#CHECK_CRON=*/15 * * * *
@@ -1,7 +1,7 @@
services:
# argus
argus:
image: releaseargus/argus:latest
image: releaseargus/argus:${ARGUS_DOCKER_TAG:-latest}
container_name: argus
profiles:
- argus
@@ -10,6 +10,9 @@ authentication_backend:
file:
path: /config/users_database.yml
# totp:
# issuer: bensuperpc.org
access_control:
default_policy: deny
rules:
@@ -20,13 +23,20 @@ access_control:
- "it-tools.bensuperpc.org"
- "omni-tools.bensuperpc.org"
- "cyberchef.bensuperpc.org"
- "bentopdf.bensuperpc.org"
- "wordpress.bensuperpc.org"
- "homepage.bensuperpc.org"
- "forgejo.bensuperpc.org"
policy: bypass
- domain:
- "jellyfin.bensuperpc.org"
- "openwebui.bensuperpc.org"
- "qbittorrent.bensuperpc.org"
- "syncthing.bensuperpc.org"
- "torrent.bensuperpc.org"
- "litellm.bensuperpc.org"
- "searxng.bensuperpc.org"
- "localai.bensuperpc.org"
subject:
- 'group:admins'
- 'group:users'
@@ -54,7 +64,7 @@ session:
regulation:
max_retries: 5
find_time: 3m
ban_time: 15m
ban_time: 30m
storage:
postgres: {}
@@ -62,3 +72,7 @@ storage:
notifier:
filesystem:
filename: /config/notification.txt
# smtp:
# address: "submission://smtp.example.com:587"
# username: bensuperpc
# sender: "Authelia <authelia@bensuperpc.org>"
@@ -1,41 +1,41 @@
services:
authelia:
container_name: authelia
image: authelia/authelia:latest
image: authelia/authelia:${AUTHELIA_DOCKER_TAG:-4.39.20}
profiles:
- authelia
- caddy
depends_on:
authelia-postgres:
condition: service_healthy
extends:
file: ../common.yml
service: service-base
# environment:
# - TZ=America/New_York
# - PUID=${PUID:-1000}
# - PGID=${PGID:-1000}
env_file:
- ./env/authelia.env
environment:
- TZ=${TZ:-Europe/Paris}
volumes:
- ./config:/config
networks:
- caddy-infra
- authelia-internal
restart: on-failure:7
authelia-postgres:
image: postgres:17-alpine
image: postgres:${AUTHELIA_POSTGRES_DOCKER_TAG:-18.4-alpine3.24}
container_name: authelia-postgres
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
volumes:
- authelia_db_data:/var/lib/postgresql/data
- authelia_db_data:/var/lib/postgresql
env_file:
- ./env/authelia_postgres.env
profiles:
- authelia
- caddy
environment:
- TZ=${TZ:-Europe/Paris}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ]
interval: 5s
-8
View File
@@ -1,8 +0,0 @@
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=ht87MVnXkXhBpDkMUHqKDqdg8UGBJt+Fx5jNIqXnN2k=
AUTHELIA_SESSION_SECRET=nsvbXKGRXVZUCUkOapntlq/Zh+d75WacTK5Jgyh8zYk=
AUTHELIA_STORAGE_ENCRYPTION_KEY=aWeIT74xIhGVd9nUOr4YTToTl5rpBEbzc/fv4jemuos=
AUTHELIA_STORAGE_POSTGRES_HOST=authelia-postgres
AUTHELIA_STORAGE_POSTGRES_PORT=5432
AUTHELIA_STORAGE_POSTGRES_DATABASE=authelia_db
AUTHELIA_STORAGE_POSTGRES_USERNAME=authelia
AUTHELIA_STORAGE_POSTGRES_PASSWORD=sAdkxFW6k3GiMOrlBpl6OV76eb9cQz/uk95jmA2UpI8=
@@ -0,0 +1,8 @@
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=__GENERATE_AUTHELIA_JWT_SECRET__
AUTHELIA_SESSION_SECRET=__GENERATE_AUTHELIA_SESSION_SECRET__
AUTHELIA_STORAGE_ENCRYPTION_KEY=__GENERATE_AUTHELIA_STORAGE_ENCRYPTION_KEY__
AUTHELIA_STORAGE_POSTGRES_ADDRESS=tcp://authelia-postgres:5432
AUTHELIA_STORAGE_POSTGRES_DATABASE=authelia_db
AUTHELIA_STORAGE_POSTGRES_USERNAME=authelia
AUTHELIA_STORAGE_POSTGRES_PASSWORD=__GENERATE_AUTHELIA_DB_PASSWORD__
#AUTHELIA_NOTIFIER_SMTP_PASSWORD=your-smtp-password-here
@@ -1,3 +0,0 @@
POSTGRES_USER=authelia
POSTGRES_PASSWORD=sAdkxFW6k3GiMOrlBpl6OV76eb9cQz/uk95jmA2UpI8=
POSTGRES_DB=authelia_db
@@ -0,0 +1,3 @@
POSTGRES_USER=authelia
POSTGRES_PASSWORD=__GENERATE_AUTHELIA_DB_PASSWORD__
POSTGRES_DB=authelia_db
@@ -0,0 +1,18 @@
services:
bentopdf:
extends:
file: ../common.yml
service: service-base
image: ghcr.io/alam00000/bentopdf-simple:${BENTOPDF_DOCKER_TAG:-latest}
container_name: bentopdf
profiles:
- bentopdf
depends_on:
- caddy
networks:
- caddy-tools
networks:
caddy-tools:
driver: bridge
name: caddy-tools
@@ -44,3 +44,7 @@ import website/dependency-track.caddy
import website/searxng.caddy
import website/authelia.caddy
import website/dozzle.caddy
import website/litellm.caddy
import website/localai.caddy
import website/bentopdf.caddy
import website/vscode.caddy
@@ -2,5 +2,7 @@
forward_auth authelia:9091 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host}
}
}
@@ -0,0 +1,4 @@
{$SCHEME}://bentopdf.{$MAIN_DOMAIN} {
import authelia_middleware
reverse_proxy {$BENTOPDF_ADDRESS}
}
@@ -0,0 +1,5 @@
{$SCHEME}://litellm.{$MAIN_DOMAIN} {
import authelia_middleware
reverse_proxy {$LITELLM_ADDRESS} {
}
}
@@ -0,0 +1,5 @@
{$SCHEME}://localai.{$MAIN_DOMAIN} {
import authelia_middleware
reverse_proxy {$LOCALAI_ADDRESS} {
}
}
@@ -1,4 +1,5 @@
{$SCHEME}://openwebui.{$MAIN_DOMAIN} {
import authelia_middleware
reverse_proxy {$OPEN_WEBUI_ADDRESS}
reverse_proxy {$OPEN_WEBUI_ADDRESS} {
}
}
@@ -0,0 +1,6 @@
{$SCHEME}://vscode.{$MAIN_DOMAIN} {
import authelia_middleware
reverse_proxy {$VSCODE_SERVER_ADDRESS} {
header_up Host {upstream_hostport}
}
}
@@ -2,14 +2,13 @@ services:
# Caddy
caddy:
#image: bensuperpc/caddy-l4:latest
image: caddy:latest
image: caddy:${CADDY_DOCKER_TAG:-latest}
container_name: caddy
profiles:
- caddy
depends_on:
main_infrastructure:
condition: service_completed_successfully
restart: on-failure:7
ports:
- 80:80/tcp
- 80:80/udp
@@ -32,10 +31,9 @@ services:
- caddy-web
env_file:
- ./env/caddy.env
environment:
- TZ=${TZ:-Europe/Paris}
security_opt:
- no-new-privileges:true
extends:
file: ../common.yml
service: service-base
healthcheck:
test: pidof caddy || exit 1
interval: 120s
@@ -43,7 +41,7 @@ services:
retries: 3
caddy_backup:
image: mazzolino/restic:latest
image: mazzolino/restic:${RESTIC_DOCKER_TAG:-latest}
container_name: caddy_backup
profiles:
- caddy
@@ -9,6 +9,7 @@ UPTIMEKUMA_ADDRESS=uptime-kuma:3001
MEMOS_ADDRESS=memos:5230
HOMEPAGE_ADDRESS=homepage:3000
OPEN_WEBUI_ADDRESS=openwebui:8080
LITELLM_ADDRESS=litellm:4000
PICOSHARE_ADDRESS=picoshare:4001
PRIVATEBIN_ADDRESS=privatebin:8080
PROJECTSEND_ADDRESS=projectsend:80
@@ -22,6 +23,9 @@ DEPENDENCY_TRACK_APISERVER_ADDRESS=dependency-track-apiserver:8080
SEARXNG_ADDRESS=searxng:8080
AUTHELIA_ADDRESS=authelia:9091
DOZZLE_ADDRESS=dozzle:8080
LOCALAI_ADDRESS=localai:8080
BENTOPDF_ADDRESS=bentopdf:8080
VSCODE_SERVER_ADDRESS=vscode-server:8443
# Scheme
SCHEME=https
# ignore_loaded_certs off
@@ -1,7 +1,7 @@
#RUN_ON_STARTUP=true
RESTIC_REPOSITORY=/mnt/restic
RESTIC_BACKUP_SOURCES=/data
RESTIC_PASSWORD=YFQh8v3Wi95v0p6h88D4u8C8z4gLfdMw
RESTIC_PASSWORD=__GENERATE_CADDY_RESTIC_PASSWORD__
# Backup (exuclusive with Check and Prune)
BACKUP_CRON=*/30 * * * *
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
@@ -0,0 +1,36 @@
services:
# vscode-server
vscode-server:
extends:
file: ../common.yml
service: service-base
image: lscr.io/linuxserver/code-server:${VSCODE_SERVER_DOCKER_TAG:-latest}
container_name: vscode-server
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
env_file:
- ./env/vscode-server.env
profiles:
- vscode-server
depends_on:
- caddy
volumes:
- vscode-server_config:/config:rw
- public_data:/public_data:rw
- private_data:/private_data:rw
networks:
- caddy-dev
networks:
caddy-dev:
driver: bridge
name: caddy-dev
volumes:
vscode-server_config:
name: vscode-server_config
private_data:
name: private_data
public_data:
name: public_data
@@ -0,0 +1,4 @@
SUDO_PASSWORD=__GENERATE_SUDO_VSCODE_SERVER_PASSWORD__
PASSWORD=__GENERATE_VSCODE_SERVER_PASSWORD__
PROXY_DOMAIN=vscode.bensuperpc.org
DOCKER_MODS=linuxserver/mods:code-server-python3
+9
View File
@@ -0,0 +1,9 @@
services:
service-base:
restart: on-failure:7
environment:
- TZ=${TZ:-Europe/Paris}
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
@@ -1,54 +1,32 @@
services:
# cyberchef
cyberchef0:
image: mpepping/cyberchef:latest
extends:
file: ../common.yml
service: service-base
image: mpepping/cyberchef:${CYBERCHEF_DOCKER_TAG:-latest}
container_name: cyberchef0
profiles:
- cyberchef
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
cyberchef1:
image: mpepping/cyberchef:latest
extends:
file: ../common.yml
service: service-base
image: mpepping/cyberchef:${CYBERCHEF_DOCKER_TAG:-latest}
container_name: cyberchef1
profiles:
- cyberchef
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
networks:
caddy-tools:
@@ -1,6 +1,6 @@
services:
dependency-track-apiserver:
image: dependencytrack/apiserver
image: dependencytrack/apiserver:${DEPENDENCY_TRACK_API_DOCKER_TAG:-latest}
container_name: dependency-track-apiserver
profiles:
- dependency-track
@@ -9,25 +9,23 @@ services:
condition: service_healthy
env_file:
- ./env/dependency-track.env
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
networks:
- caddy-web
- dependency-track-internal
deploy:
resources:
limits:
memory: 4g
restart_policy:
condition: on-failure
volumes:
- 'dtrack-data:/data'
dependency-track-frontend:
image: dependencytrack/frontend
image: dependencytrack/frontend:${DEPENDENCY_TRACK_FRONTEND_DOCKER_TAG:-latest}
container_name: dependency-track-frontend
profiles:
- dependency-track
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
networks:
- caddy-web
- dependency-track-internal
@@ -36,19 +34,19 @@ services:
condition: service_healthy
caddy:
condition: service_healthy
security_opt:
- no-new-privileges:true
env_file:
- ./env/dependency-track.env
dependency-track-postgres:
image: postgres:17-alpine
image: postgres:${DEPENDENCY_TRACK_POSTGRES_DOCKER_TAG:-17-alpine}
container_name: dependency-track-postgres
profiles:
- dependency-track
env_file:
- ./env/postgres.env
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
networks:
- dependency-track-internal
healthcheck:
@@ -2,6 +2,6 @@ ALPINE_DATABASE_MODE="external"
ALPINE_DATABASE_URL="jdbc:postgresql://dependency-track-postgres:5432/dtrack"
ALPINE_DATABASE_DRIVER="org.postgresql.Driver"
ALPINE_DATABASE_USERNAME="dtrack"
ALPINE_DATABASE_PASSWORD="dtrack"
ALPINE_DATABASE_PASSWORD="__GENERATE_DTRACK_DB_PASSWORD__"
API_BASE_URL="https://dependency-track.bensuperpc.org"
@@ -1,3 +0,0 @@
POSTGRES_DB="dtrack"
POSTGRES_USER="dtrack"
POSTGRES_PASSWORD="dtrack"
@@ -0,0 +1,3 @@
POSTGRES_DB="dtrack"
POSTGRES_USER="dtrack"
POSTGRES_PASSWORD="__GENERATE_DTRACK_DB_PASSWORD__"
@@ -1,7 +1,8 @@
users:
bensuperpc:
email: bensuperpc@gmail.com
name: bensuperpc
admin:
email: me@email.net
name: admin
# docker run -it --rm amir20/dozzle generate admin --password password --email me@email.net --name "admin"
password: $2a$11$w56N4NICh5xD5Bbq6Z2Z2ef9/QUaa/YKleMiawn/Bru9hYsQOJyrm
filter: ""
roles: ""
@@ -1,6 +1,6 @@
services:
dozzle:
image: amir20/dozzle:latest
image: amir20/dozzle:${DOZZLE_DOCKER_TAG:-latest}
container_name: dozzle
profiles:
- dozzle
@@ -22,7 +22,7 @@ services:
- dozzle-internal
dozzle-dockerproxy:
image: tecnativa/docker-socket-proxy:latest
image: tecnativa/docker-socket-proxy:${DOCKER_SOCKET_PROXY_DOCKER_TAG:-latest}
container_name: dozzle-dockerproxy
profiles:
- dozzle
@@ -1,12 +1,14 @@
services:
# dufs
dufs:
image: sigoden/dufs:latest
image: sigoden/dufs:${DUFS_DOCKER_TAG:-latest}
container_name: dufs
profiles:
- dufs
# user: ${PUID:-1000}:${PGID:-1000}
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
env_file:
@@ -15,8 +17,6 @@ services:
- public_data:/data
networks:
- caddy-files
security_opt:
- no-new-privileges:true
volumes:
public_data:
@@ -4,4 +4,4 @@ DUFS_SERVE_PATH=/data
DUFS_HIDDEN=tmp,*.log,*.lock
DUFS_ALLOW_ALL=true
DUFS_COMPRESS=medium
DUFS_AUTH="admin:heqihlOfBmJDESGFlpbPi7P7Mi6F7RkV@/:rw|@/:ro"
DUFS_AUTH="admin:__GENERATE_DUFS_PASSWORD__@/:rw|@/:ro"
@@ -1,7 +1,7 @@
services:
# forgejo
forgejo:
image: codeberg.org/forgejo/forgejo:15
image: codeberg.org/forgejo/forgejo:${FORGEJO_DOCKER_TAG:-15}
container_name: forgejo
profiles:
- forgejo
@@ -26,13 +26,15 @@ services:
# Database forgejo
database_forgejo:
image: mariadb:latest
image: mariadb:${FORGEJO_DB_DOCKER_TAG:-latest}
container_name: database_forgejo
profiles:
- forgejo
depends_on:
- caddy
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
volumes:
- forgejo_db:/var/lib/mysql:rw
env_file:
@@ -40,12 +42,10 @@ services:
command: '--default-authentication-plugin=mysql_native_password'
networks:
- forgejo-internal
security_opt:
- no-new-privileges:true
# forgejo-runner
docker-in-docker:
image: code.forgejo.org/oci/docker:dind
image: code.forgejo.org/oci/docker:${FORGEJO_DIND_DOCKER_TAG:-dind}
container_name: 'docker_dind'
hostname: docker
networks:
@@ -60,7 +60,7 @@ services:
- forgejo_certs:/certs
forgejo_runner:
image: data.forgejo.org/forgejo/runner:12
image: data.forgejo.org/forgejo/runner:${FORGEJO_RUNNER_DOCKER_TAG:-12}
networks:
- forgejo-internal
profiles:
@@ -76,7 +76,7 @@ services:
# - ./config/forgejo_runner/config.yaml:/config.yaml:ro
- forgejo_runner:/data
- forgejo_certs:/certs
restart: 'unless-stopped'
restart: on-failure:7
# command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'
command: '/bin/sh -c "sleep 5; forgejo-runner -c /data/config.yml daemon"'
@@ -4,7 +4,7 @@ FORGEJO__database__DB_TYPE=mysql
FORGEJO__database__HOST=database_forgejo:3306
FORGEJO__database__NAME=forgejo
FORGEJO__database__USER=bensuperpc
FORGEJO__database__PASSWD=ZcuHcM9tnIEM7EEO7R5jCpEt6v1d6r7s
FORGEJO__database__PASSWD=__GENERATE_FORGEJO_DB_PASSWORD__
FORGEJO__APP_NAME=Bensuperpc's Forgejo
FORGEJO__APP_SLOGAN=Personal Code, Mirrors, and More
FORGEJO__server__DOMAIN=git.bensuperpc.org
@@ -13,7 +13,7 @@ FORGEJO__server__HTTP_PORT=3000
FORGEJO__server__SSH_LISTEN_PORT=2222
FORGEJO__server__SSH_PORT=22
FORGEJO__server__ROOT_URL=https://git.bensuperpc.org
FORGEJO__security__SECRET_KEY=7IWrMh7mC7UMo1SowvUsAT2LOX49eU6P
FORGEJO__security__SECRET_KEY=__GENERATE_FORGEJO_SECRET_KEY__
#FORGEJO__security__INTERNAL_TOKEN=
FORGEJO__security__INSTALL_LOCK=true
FORGEJO__security__MIN_PASSWORD_LENGTH=8
-4
View File
@@ -1,4 +0,0 @@
MARIADB_ROOT_PASSWORD=ZI8Trbot3b8WGqE5AKj1yphKMu4v9qQw
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=ZcuHcM9tnIEM7EEO7R5jCpEt6v1d6r7s
MARIADB_DATABASE=forgejo
@@ -0,0 +1,4 @@
MARIADB_ROOT_PASSWORD=__GENERATE_FORGEJO_DB_ROOT_PASSWORD__
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=__GENERATE_FORGEJO_DB_PASSWORD__
MARIADB_DATABASE=forgejo
@@ -24,6 +24,13 @@
# ping: cyberchef.bensuperpc.org
container: cyberchef0
server: my-docker
- bentopdf:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/bentopdf.png
href: https://bentopdf.bensuperpc.org/
description: BentoPDF
# ping: bentopdf.bensuperpc.org
container: bentopdf
server: my-docker
- caddy:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/caddy.png
href: https://public.bensuperpc.org/
@@ -103,6 +110,20 @@
# ping: openwebui.bensuperpc.org
container: openwebui
server: my-docker
- localai:
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/localai.png
href: https://localai.bensuperpc.org/
description: ChatGPT local
# ping: localai.bensuperpc.org
container: localai
server: my-docker
- litellm:
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/litellm.png
href: https://litellm.bensuperpc.org/
description: LiteLLM
# ping: litellm.bensuperpc.org
container: litellm
server: my-docker
- picoshare:
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/picoshare.png
href: https://picoshare.bensuperpc.org/
@@ -131,6 +152,13 @@
# ping: transmission.bensuperpc.org
container: transmission
server: my-docker
- vscode-server:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/vscode.png
href: https://vscode.bensuperpc.org/
description: VS Code Server
# ping: vscode.bensuperpc.org
container: vscode-server
server: my-docker
- Games:
- minecraft:
@@ -1,11 +1,13 @@
services:
# homepage
homepage:
image: ghcr.io/gethomepage/homepage:latest
image: ghcr.io/gethomepage/homepage:${HOMEPAGE_DOCKER_TAG:-latest}
container_name: homepage
profiles:
- homepage
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
# environment:
# - PUID=${PUID:-1000}
# - PGID=${PGID:-1000}
@@ -14,8 +16,6 @@ services:
- homepage-dockerproxy
env_file:
- ./env/homepage.env
environment:
- TZ=${TZ:-Europe/Paris}
volumes:
- homepage_log:/app/logs
- ./config:/app/config
@@ -23,11 +23,8 @@ services:
networks:
- caddy-infra
- homepage-internal
security_opt:
- no-new-privileges:true
homepage-dockerproxy:
image: tecnativa/docker-socket-proxy:latest
image: tecnativa/docker-socket-proxy:${DOCKER_SOCKET_PROXY_DOCKER_TAG:-latest}
container_name: homepage-dockerproxy
profiles:
- homepage
@@ -1,58 +1,32 @@
services:
# it-tools
it-tools0:
image: ghcr.io/sharevb/it-tools:latest
extends:
file: ../common.yml
service: service-base
image: ghcr.io/sharevb/it-tools:${IT_TOOLS_DOCKER_TAG:-latest}
container_name: it-tools0
profiles:
- it-tools
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
environment:
- TZ=${TZ:-Europe/Paris}
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
it-tools1:
image: ghcr.io/sharevb/it-tools:latest
extends:
file: ../common.yml
service: service-base
image: ghcr.io/sharevb/it-tools:${IT_TOOLS_DOCKER_TAG:-latest}
container_name: it-tools1
profiles:
- it-tools
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
environment:
- TZ=${TZ:-Europe/Paris}
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
networks:
caddy-tools:
@@ -1,11 +1,13 @@
services:
# Jellyfin
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
image: lscr.io/linuxserver/jellyfin:${JELLYFIN_DOCKER_TAG:-latest}
container_name: jellyfin
profiles:
- jellyfin
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
@@ -24,8 +26,6 @@ services:
- /dev/dri:/dev/dri
networks:
- caddy-media
security_opt:
- no-new-privileges:true
volumes:
jellyfin_config:
@@ -0,0 +1,38 @@
name: localai
services:
# localai
localai:
image: localai/localai:${LOCALAI_DOCKER_TAG:-latest}
container_name: localai
profiles:
- localai
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
env_file:
- ./env/localai.env
volumes:
- localai_data:/data
- localai_models:/models
- localai_backends:/backends
- localai_config:/config
networks:
- caddy-ai
volumes:
localai_models:
name: localai_models
localai_backends:
name: localai_backends
localai_config:
name: localai_config
localai_data:
name: localai_data
networks:
caddy-ai:
driver: bridge
name: caddy-ai
@@ -0,0 +1,3 @@
DISABLE_AUTODETECT=false
LOCALAI_BASE_URL=https://localai.bensuperpc.org
DEBUG=true
@@ -1,15 +1,16 @@
services:
main_infrastructure:
container_name: main_infrastructure
image: alpine:latest
image: alpine:${ALPINE_DOCKER_TAG:-latest}
profiles:
- main_infrastructure
volumes:
- public_data:/public_data:rw
- private_data:/private_data:rw
read_only: true
security_opt:
- no-new-privileges:true
extends:
file: ../common.yml
service: service-base
cap_drop:
- ALL
cap_add:
@@ -22,7 +23,7 @@ services:
container_name: watchtower
profiles:
- main_infrastructure
image: nickfedor/watchtower:latest
image: nickfedor/watchtower:${WATCHTOWER_DOCKER_TAG:-latest}
environment:
- TZ=${TZ:-Europe/Paris}
volumes:
@@ -1,11 +1,13 @@
services:
# memos
memos:
image: neosmemo/memos:latest
image: neosmemo/memos:${MEMOS_DOCKER_TAG:-latest}
container_name: memos
profiles:
- memos
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
env_file:
@@ -14,8 +16,6 @@ services:
- memos_config:/var/opt/memos
networks:
- caddy-tools
security_opt:
- no-new-privileges:true
volumes:
memos_config:
@@ -1,21 +1,21 @@
services:
minecraft_backup:
image: mazzolino/restic:latest
image: mazzolino/restic:${RESTIC_DOCKER_TAG:-latest}
container_name: minecraft_backup
profiles:
- minecraft_backup
depends_on:
- mc-server
- minecraft_proxy
restart: on-failure:7
extends:
file: ../../common.yml
service: service-base
env_file:
- ./env/backup.env
volumes:
- minecraft_server_backup:/mnt/restic
- minecraft_server_data:/data/minecraft_server_data:ro
- minecraft_proxy_data:/data/minecraft_proxy_data:ro
security_opt:
- no-new-privileges:true
network_mode: none
cap_drop:
- NET_ADMIN
@@ -1,10 +1,10 @@
#RUN_ON_STARTUP=true
RESTIC_REPOSITORY=/mnt/restic
RESTIC_BACKUP_SOURCES=/data
RESTIC_PASSWORD=SCY5cmu12Odca302EXabPA9jXYkCb2NN
RESTIC_PASSWORD=__GENERATE_MINECRAFT_RESTIC_PASSWORD__
# Backup (exuclusive with Check and Prune)
BACKUP_CRON=*/15 * * * *
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
BACKUP_CRON=*/15 * * * *
#RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
# Check (exuclusive with Check and Prune)
#CHECK_CRON=*/15 * * * *
@@ -1,6 +1,6 @@
services:
minecraft_proxy:
image: itzg/bungeecord:latest
image: itzg/mc-proxy:${MINECRAFT_PROXY_DOCKER_TAG:-java25}
container_name: minecraft_proxy_server
profiles:
- minecraft_proxy
@@ -26,7 +26,7 @@ services:
- minecraft-network
mc-server:
image: itzg/minecraft-server:latest
image: itzg/minecraft-server:${MINECRAFT_SERVER_DOCKER_TAG:-java25}
container_name: minecraft_server
profiles:
- minecraft_server
@@ -57,14 +57,6 @@ services:
# - ./asset_links/plugins.txt:/extras/plugins.txt:ro
networks:
- minecraft-network
deploy:
resources:
# limits:
# cpus: '8.0'
# memory: 26G
reservations:
cpus: '0.01'
memory: 20M
volumes:
minecraft_server_data:
name: minecraft_server_data
@@ -1,12 +1,12 @@
TYPE=VELOCITY
VELOCITY_VERSION=3.5.0-SNAPSHOT
VELOCITY_BUILD_ID=594
VELOCITY_VERSION=4.0.0-SNAPSHOT
VELOCITY_BUILD_ID=5
#PLUGINS=
#SPIGET_PLUGINS=
DEBUG=false
DEBUG_HELPER=false
ENABLE_RCON=false
#RCON_PASSWORD=6hxU3Oxmh2Q8e6S9fjkdWJik
#RCON_PASSWORD=__GENERATE_MINECRAFT_PROXY_RCON_PASSWORD__
#RCON_PORT=25576
INIT_MEMORY=512M
MAX_MEMORY=1536M
@@ -11,8 +11,8 @@ ENFORCE_SECURE_PROFILE=false
# Server jar options
TYPE=PURPUR
VERSION=1.21.11
PURPUR_BUILD=2568
VERSION=26.2
PURPUR_BUILD=2608
FORCE_REDOWNLOAD=false
BUILD_FROM_SOURCE=false
@@ -64,7 +64,7 @@ ALLOW_FLIGHT=false
# RCON options
ENABLE_RCON=false
RCON_PASSWORD=6hxU3Oxmh2Q8e6S9fjkdWJik
RCON_PASSWORD=__GENERATE_MINECRAFT_RCON_PASSWORD__
RCON_PORT=25575
BROADCAST_CONSOLE_TO_OPS=true
BROADCAST_RCON_TO_OPS=true
@@ -78,4 +78,3 @@ SNOOPER_ENABLED=true
ENABLE_STATUS=true
PREVIEWS_CHAT=false
#SYNC_CHUNK_WRITES=true
@@ -1,58 +1,24 @@
services:
# omni-tools
omni-tools0:
image: iib0011/omni-tools:latest
container_name: omni-tools0
x-omni-tools: &omni-tools
extends:
file: ../common.yml
service: service-base
image: iib0011/omni-tools:${OMNI_TOOLS_DOCKER_TAG:-latest}
profiles:
- omni-tools
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
environment:
- TZ=${TZ:-Europe/Paris}
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
services:
omni-tools0:
<<: *omni-tools
container_name: omni-tools0
omni-tools1:
image: iib0011/omni-tools:latest
<<: *omni-tools
container_name: omni-tools1
profiles:
- omni-tools
restart: on-failure:7
depends_on:
- caddy
networks:
- caddy-tools
read_only: false
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
environment:
- TZ=${TZ:-Europe/Paris}
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
networks:
caddy-tools:
@@ -2,43 +2,59 @@ name: openwebui
services:
ollama:
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
image: ollama/ollama:${OLLAMA_DOCKER_TAG:-0.31.2}
container_name: ollama
profiles:
- openwebui
- ollama
depends_on:
- caddy
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
tty: true
volumes:
- ollama:/root/.ollama
- openwebui-ollama:/root/.ollama
# ports:
# - ${OLLAMA_PORT-11434}:11434
# - ${OLLAMA_PORT:-11434}:11434
env_file:
- ./env/ollama.env
environment:
- TZ=${TZ:-Europe/Paris}
security_opt:
- no-new-privileges:true
- ./env/openwebui-ollama.env
networks:
- openwebui-internal
# devices:
# - /dev/dri
# - /dev/kfd
openwebui-postgres:
image: postgres:17-alpine
container_name: openwebui-postgres
litellm:
image: ghcr.io/berriai/litellm:${LITELLM_DOCKER_TAG:-v1.92.0}
container_name: litellm
profiles:
- openwebui
extends:
file: ../common.yml
service: service-base
depends_on:
litellm-postgres:
condition: service_healthy
env_file:
- ./env/litellm.env
command: ["--port", "4000", "--detailed_debug"]
networks:
- caddy-ai
- openwebui-internal
litellm-postgres:
image: postgres:${POSTGRES_DOCKER_TAG:-18.4-alpine3.24}
container_name: litellm-postgres
profiles:
- openwebui
env_file:
- ./env/openwebui-postgres.env
environment:
- TZ=${TZ:-Europe/Paris}
- ./env/litellm-postgres.env
volumes:
- openwebui-postgres:/var/lib/postgresql/data
restart: on-failure:7
- litellm-postgres:/var/lib/postgresql
extends:
file: ../common.yml
service: service-base
networks:
- openwebui-internal
healthcheck:
@@ -47,6 +63,122 @@ services:
timeout: 3s
retries: 5
openwebui-postgres:
image: postgres:${POSTGRES_DOCKER_TAG:-18.4-alpine3.24}
container_name: openwebui-postgres
profiles:
- openwebui
env_file:
- ./env/openwebui-postgres.env
extends:
file: ../common.yml
service: service-base
volumes:
- openwebui-postgres:/var/lib/postgresql
networks:
- openwebui-internal
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ]
interval: 5s
timeout: 3s
retries: 5
openwebui:
image: ghcr.io/open-webui/open-webui:${OPEN_WEBUI_DOCKER_TAG:-v0.10.2}
container_name: openwebui
profiles:
- openwebui
extends:
file: ../common.yml
service: service-base
volumes:
- openwebui:/app/backend/data
depends_on:
- ollama
- caddy
- openwebui-postgres
- qdrant
- valkey
env_file:
- ./env/openwebui.env
# - UID=${PUID:-1000}
# - GID=${PGID:-1000}
# ports:
# - ${OPEN_WEBUI_PORT:-3000}:8080
networks:
- caddy-ai
- openwebui-internal
openwebui-pipelines:
image: ghcr.io/open-webui/pipelines:${WEBUI_PIPELINE_DOCKER_TAG:-git-039f9c5}
container_name: openwebui-pipelines
profiles:
- openwebui
extends:
file: ../common.yml
service: service-base
networks:
- openwebui-internal
env_file:
- ./env/openwebui-pipelines.env
volumes:
- openwebui-pipelines:/app/pipelines
qdrant:
image: qdrant/qdrant:${QDRANT_DOCKER_TAG:-v1.18.2}
profiles:
- openwebui
container_name: qdrant
extends:
file: ../common.yml
service: service-base
# ports:
# - "6333:6333"
# - "6334:6334"
env_file:
- ./env/openwebui-qdrant.env
volumes:
- openwebui-qdrant:/qdrant/storage
networks:
- openwebui-internal
valkey:
image: valkey/valkey:${VALKEY_DOCKER_TAG:-9.1.0-alpine}
container_name: valkey
profiles:
- openwebui
env_file:
- ./env/openwebui-valkey.env
extends:
file: ../common.yml
service: service-base
# $$VALKEY_PASSWORD (not ${VALKEY_PASSWORD}) so it's expanded at container
# runtime from env_file, not at compose-parse time from the host shell.
command: sh -c 'exec valkey-server --requirepass "$$VALKEY_PASSWORD" --maxclients 10000 --timeout 1800'
volumes:
- openwebui-valkey:/data
networks:
- openwebui-internal
volumes:
openwebui: {}
openwebui-ollama: {}
openwebui-postgres: {}
openwebui-pgadmin: {}
openwebui-valkey: {}
openwebui-qdrant: {}
litellm-postgres: {}
openwebui-pipelines: {}
networks:
caddy-ai:
driver: bridge
name: caddy-ai
openwebui-internal:
driver: bridge
name: openwebui-internal
# pgadmin:
# image: dpage/pgadmin4:latest
# container_name: pgadmin
@@ -61,45 +193,4 @@ services:
# openwebui-postgres:
# condition: service_healthy
# networks:
# - openwebui-network
openwebui:
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
container_name: openwebui
profiles:
- openwebui
volumes:
- openwebui:/app/backend/data
depends_on:
- ollama
- caddy
- openwebui-postgres
env_file:
- ./env/openwebui.env
environment:
- TZ=${TZ:-Europe/Paris}
# - UID=${PUID:-1000}
# - GID=${PGID:-1000}
# ports:
# - ${OPEN_WEBUI_PORT-3000}:8080
restart: on-failure:7
networks:
- caddy-ai
- openwebui-internal
security_opt:
- no-new-privileges:true
volumes:
ollama: {}
openwebui: {}
openwebui-postgres: {}
openwebui-pgadmin: {}
networks:
caddy-ai:
driver: bridge
name: caddy-ai
openwebui-internal:
driver: bridge
name: openwebui-internal
# - openwebui-internal
@@ -0,0 +1,3 @@
POSTGRES_USER=litellm_user
POSTGRES_PASSWORD=__GENERATE_LITELLM_DB_PASSWORD__
POSTGRES_DB=litellm_db
@@ -0,0 +1,11 @@
DATABASE_URL=postgresql://litellm_user:__GENERATE_LITELLM_DB_PASSWORD__@litellm-postgres:5432/litellm_db
LITELLM_MASTER_KEY=__GENERATE_LITELLM_MASTER_KEY__
LITELLM_MODE=proxy
UI_USERNAME=admin
UI_PASSWORD=__GENERATE_LITELLM_UI_PASSWORD__
PROXY_BASE_URL=https://litellm.bensuperpc.org
#OPENAI_API_KEY=
#ANTHROPIC_API_KEY=
@@ -4,5 +4,7 @@
# OLLAMA_GPU_LAYERS=
# OLLAMA_DEBUG=1
# OLLAMA_SCHED_SPREAD=1
# OLLAMA_FLASH_ATTENTION=1
# OLLAMA_CONTEXT_LENGTH=2048
OLLAMA_CONTEXT_LENGTH=16384
OLLAMA_FLASH_ATTENTION=1
OLLAMA_ORIGINS="*"
OLLAMA_HOST=0.0.0.0
@@ -1,4 +0,0 @@
PGADMIN_DEFAULT_EMAIL=admin@local.ai
PGADMIN_DEFAULT_PASSWORD=admin123
PGADMIN_CONFIG_SERVER_MODE=False
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
@@ -0,0 +1,4 @@
PGADMIN_DEFAULT_EMAIL=admin@local.ai
PGADMIN_DEFAULT_PASSWORD=__GENERATE_PGADMIN_PASSWORD__
PGADMIN_CONFIG_SERVER_MODE=False
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
@@ -0,0 +1 @@
PIPELINES_API_KEY=__GENERATE_PIPELINES_API_KEY__
@@ -1,3 +0,0 @@
POSTGRES_DB=openwebui
POSTGRES_USER=postgres
POSTGRES_PASSWORD=securepassword123
@@ -0,0 +1,3 @@
POSTGRES_DB=openwebui
POSTGRES_USER=postgres
POSTGRES_PASSWORD=__GENERATE_OPENWEBUI_DB_PASSWORD__
@@ -0,0 +1,2 @@
QDRANT__SERVICE__API_KEY=__GENERATE_QDRANT_API_KEY__
QDRANT__SERVICE__ENABLE_API_KEY_AUTHORIZATION=true
@@ -0,0 +1 @@
VALKEY_PASSWORD=__GENERATE_VALKEY_PASSWORD__
-20
View File
@@ -1,20 +0,0 @@
OLLAMA_BASE_URL=http://ollama:11434
# openssl rand -hex 32
WEBUI_SECRET_KEY=7d83b15a417d090ba5c6b899270a05dd215c60848354c0c7574226d6ff02f39e
#HF_HUB_OFFLINE=1
# Disable analytics
SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true
ANONYMIZED_TELEMETRY=false
#OPENAI_API_BASE_URL=
#OPENAI_API_KEY=
# Database configuration
DATABASE_URL=postgresql://postgres:securepassword123@openwebui-postgres:5432/openwebui
# Only with stable-diffusion-webui
#ENABLE_IMAGE_GENERATION=true
#AUTOMATIC1111_BASE_URL=http://stable-diffusion-webui:7860
#IMAGE_SIZE=64x64
#IMAGE_STEPS=3
@@ -0,0 +1,40 @@
OLLAMA_BASE_URL=http://ollama:11434
OPENAI_API_BASE_URL=http://litellm:4000/v1
OPENAI_API_KEY=__GENERATE_LITELLM_MASTER_KEY__
# openssl rand -hex 32
WEBUI_SECRET_KEY=__GENERATE_OPENWEBUI_SECRET_KEY__
#HF_HUB_OFFLINE=1
# Disable analytics
SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true
ANONYMIZED_TELEMETRY=false
#OPENAI_API_BASE_URL=
#OPENAI_API_KEY=
# Database configuration
DATABASE_URL=postgresql://postgres:__GENERATE_OPENWEBUI_DB_PASSWORD__@openwebui-postgres:5432/openwebui
DATABASE_POOL_SIZE=20
DATABASE_POOL_MAX_OVERFLOW=10
DATABASE_POOL_TIMEOUT=30
DATABASE_POOL_RECYCLE=1800
VECTOR_DB=${VECTOR_DB:-qdrant}
QDRANT_URI=http://qdrant:6333
QDRANT_API_KEY=__GENERATE_QDRANT_API_KEY__
REDIS_URL=redis://:__GENERATE_VALKEY_PASSWORD__@valkey:6379/0
ENABLE_WEBSOCKET_SUPPORT=true
WEBSOCKET_MANAGER=redis
WEBSOCKET_REDIS_URL=redis://:__GENERATE_VALKEY_PASSWORD__@valkey:6379/1?socket_timeout=86400
# Fix issues with redis lib 8.0.0 and openwebUI 0.10.1
WEBSOCKET_REDIS_OPTIONS={"socket_timeout":null}
# Only with stable-diffusion-webui
#ENABLE_IMAGE_GENERATION=true
#AUTOMATIC1111_BASE_URL=http://stable-diffusion-webui:7860
#IMAGE_SIZE=64x64
#IMAGE_STEPS=3
@@ -1,7 +1,7 @@
services:
# openssh
openssh:
image: linuxserver/openssh-server:latest
image: linuxserver/openssh-server:${OPENSSH_DOCKER_TAG:-latest}
container_name: openssh
profiles:
- openssh
@@ -30,12 +30,8 @@ services:
- minecraft_server_backup:/minecraft_server_backup:rw
- minecraft_server_data:/minecraft_server_data:rw
- minecraft_proxy_data:/minecraft_proxy_data:rw
- forgejo_data:/forgejo_data:rw
- forgejo_db:/forgejo_db:rw
- teamfortress2_backup:/teamfortress2_backup:rw
- teamfortress2_data:/teamfortress2_data:rw
- argus_data:/argus_data:rw
- qbittorrent_config:/qbittorrent_config:rw
- vscode-server_config:/vscode-server_config:rw
networks:
- openssh-network
security_opt:
@@ -83,16 +79,11 @@ volumes:
name: teamfortress2_backup
teamfortress2_data:
name: teamfortress2_data
# forgejo
forgejo_data:
name: forgejo_data
forgejo_db:
name: forgejo_db
# argus
argus_data:
name: argus_data
qbittorrent_config:
name: qbittorrent_config
vscode-server_config:
name: vscode-server_config
networks:
openssh-network:
@@ -4,7 +4,7 @@ DOCKER_MODS=linuxserver/mods:openssh-server-rsync
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
PUBLIC_KEY_DIR=/authorized_ssh_keys
USER_NAME=admin
USER_PASSWORD=it47mnLJIhNFspkYQo70zJsAYX7n0DSX
USER_PASSWORD=__GENERATE_OPENSSH_USER_PASSWORD__
#PUBLIC_KEY=yourpublickey
#PUBLIC_KEY_FILE=/path/to/file
@@ -1,36 +1,24 @@
services:
# picoshare
picoshare:
image: mtlynch/picoshare:latest
extends:
file: ../common.yml
service: service-base
image: mtlynch/picoshare:${PICOSHARE_DOCKER_TAG:-latest}
container_name: picoshare
profiles:
- picoshare
restart: on-failure:7
depends_on:
- caddy
env_file:
- ./env/picoshare.env
environment:
- TZ=${TZ:-Europe/Paris}
volumes:
- picoshare_data:/data
networks:
- caddy-files
security_opt:
- no-new-privileges:true
read_only: false
cap_drop:
- SYS_ADMIN
# tmpfs:
# - /tmp
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
volumes:
picoshare_data:
-3
View File
@@ -1,3 +0,0 @@
PS_SHARED_SECRET=CBuS4DJLqIe93xF1KGYRrnhxUFBqLD2n
PORT=4001
PS_BEHIND_PROXY=true
@@ -0,0 +1,3 @@
PS_SHARED_SECRET=__GENERATE_PICOSHARE_SHARED_SECRET__
PORT=4001
PS_BEHIND_PROXY=true
@@ -1,31 +1,21 @@
services:
# privatebin
privatebin:
image: privatebin/nginx-fpm-alpine:latest
image: privatebin/nginx-fpm-alpine:${PRIVATEBIN_DOCKER_TAG:-latest}
container_name: privatebin
profiles:
- privatebin
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
volumes:
- privatebin_data:/srv/data
- ./config/conf.php:/srv/cfg/conf.php:ro
environment:
- TZ=${TZ:-Europe/Paris}
networks:
- caddy-tools
security_opt:
- no-new-privileges:true
read_only: true
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
volumes:
privatebin_data:
@@ -1,11 +1,13 @@
services:
# projectsend
projectsend:
image: linuxserver/projectsend:latest
extends:
file: ../common.yml
service: service-base
image: linuxserver/projectsend:${PROJECTSEND_DOCKER_TAG:-latest}
container_name: projectsend
profiles:
- projectsend
restart: on-failure:7
depends_on:
- caddy
env_file:
@@ -16,32 +18,25 @@ services:
networks:
- caddy-files
- projectsend-internal
security_opt:
- no-new-privileges:true
cap_drop:
- SYS_ADMIN
# Database projectsend
projectsend_db:
image: mariadb:latest
image: mariadb:${PROJECTSEND_DB_DOCKER_TAG:-latest}
container_name: projectsend_db
profiles:
- database
- projectsend
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
restart: on-failure:7
volumes:
- projectsend_db:/var/lib/mysql:rw
env_file:
- ./env/projectsend_db.env
environment:
- TZ=${TZ:-Europe/Paris}
command: '--default-authentication-plugin=mysql_native_password'
networks:
- projectsend-internal
security_opt:
- no-new-privileges:true
volumes:
projectsend_db:
@@ -1,4 +0,0 @@
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
MARIADB_DATABASE=projectsend
@@ -0,0 +1,4 @@
MARIADB_ROOT_PASSWORD=__GENERATE_PROJECTSEND_DB_ROOT_PASSWORD__
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=__GENERATE_PROJECTSEND_DB_PASSWORD__
MARIADB_DATABASE=projectsend
@@ -1,33 +1,23 @@
services:
# psitransfer
psitransfer:
image: psitrax/psitransfer:latest
image: psitrax/psitransfer:${PSITRANSFER_DOCKER_TAG:-latest}
container_name: psitransfer
profiles:
- psitransfer
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
# user: ${PUID:-1000}:${PGID:-1000}
depends_on:
- caddy
env_file:
- ./env/psitransfer.env
environment:
- TZ=${TZ:-Europe/Paris}
volumes:
- psitransfer_data:/data
networks:
- caddy-files
security_opt:
- no-new-privileges:true
read_only: true
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.001'
memory: 20M
volumes:
psitransfer_data:
@@ -1,2 +0,0 @@
PSITRANSFER_ADMIN_PASS=n9jLVNT9QUotTJTT91JqH4GyBTg9pvEn
#PSITRANSFER_PORT=3000
@@ -0,0 +1,2 @@
PSITRANSFER_ADMIN_PASS=__GENERATE_PSITRANSFER_ADMIN_PASS__
#PSITRANSFER_PORT=3000
@@ -1,11 +1,13 @@
services:
# qBittorrent
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
image: lscr.io/linuxserver/qbittorrent:${QBITTORRENT_DOCKER_TAG:-latest}
container_name: qbittorrent
profiles:
- qbittorrent
restart: on-failure:7
extends:
file: ../common.yml
service: service-base
depends_on:
- caddy
env_file:
@@ -13,7 +15,6 @@ services:
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-Europe/Paris}
ports:
- 6881:6881
- 6881:6881/udp
@@ -23,8 +24,6 @@ services:
- private_data:/private_downloads
networks:
- caddy-media
security_opt:
- no-new-privileges:true
volumes:
qbittorrent_config:
@@ -1,6 +1,6 @@
services:
satisfactory_backup:
image: mazzolino/restic:latest
image: mazzolino/restic:${RESTIC_DOCKER_TAG:-latest}
container_name: satisfactory_backup
profiles:
- satisfactory_backup
@@ -1,7 +1,7 @@
#RUN_ON_STARTUP=true
RESTIC_REPOSITORY=/mnt/restic
RESTIC_BACKUP_SOURCES=/data
RESTIC_PASSWORD=SCY5cmu12Odca302EXabPA9jXYkCb2NN
RESTIC_PASSWORD=__GENERATE_SATISFACTORY_RESTIC_PASSWORD__
# Backup (exuclusive with Check and Prune)
BACKUP_CRON=*/15 * * * *
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
@@ -1,11 +1,13 @@
services:
# Satisfactory server
satisfactory_server:
image: wolveix/satisfactory-server:latest
extends:
file: ../../common.yml
service: service-base
image: wolveix/satisfactory-server:${SATISFACTORY_DOCKER_TAG:-latest}
container_name: satisfactory_server
profiles:
- satisfactory_server
restart: on-failure:7
ports:
- 7777:7777/udp
- 7777:7777/tcp
@@ -19,23 +21,12 @@ services:
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-Europe/Paris}
security_opt:
- no-new-privileges:true
healthcheck:
test: bash /healthcheck.sh
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
cap_drop:
- SYS_ADMIN
deploy:
resources:
limits:
memory: 24G
reservations:
memory: 4G
volumes:
satisfactory_server_config:
@@ -4,14 +4,14 @@ services:
searxng:
container_name: searxng
image: docker.io/searxng/searxng:${SEARXNG_VERSION:-latest}
restart: on-failure:7
depends_on:
- caddy
profiles:
- searxng
extends:
file: ../common.yml
service: service-base
env_file: ./config/searxng.env
environment:
- TZ=${TZ:-Europe/Paris}
networks:
- caddy-tools
- searxng-internal
@@ -22,19 +22,19 @@ services:
- 1.1.1.1
- 8.8.8.8
valkey:
searxng-valkey:
container_name: searxng-valkey
profiles:
- searxng
image: docker.io/valkey/valkey:9-alpine
image: docker.io/valkey/valkey:${SEARXNG_VALKEY_DOCKER_TAG:-9-alpine}
extends:
file: ../common.yml
service: service-base
command: valkey-server --save 30 1 --loglevel warning
restart: on-failure:7
environment:
- TZ=${TZ:-Europe/Paris}
networks:
- searxng-internal
volumes:
- valkey-data:/data/
- searxng-valkey-data:/data/
networks:
caddy-tools:
@@ -47,5 +47,5 @@ networks:
volumes:
searxng-data: {}
searxng-config: {}
valkey-data: {}
searxng-valkey-data: {}

Some files were not shown because too many files have changed in this diff Show More