migrate: libretranslate, shlink

This commit is contained in:
Strix 2023-10-22 16:57:54 +02:00
parent 48c6a57623
commit 047f1745f0
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
5 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,10 @@
server {
listen 80;
server_name via.ixvd.net;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://shlink:8080;
}
}

View file

@ -0,0 +1,33 @@
version: '2.2'
services:
shlink:
image: shlinkio/shlink:stable
restart: always
environment:
TZ: "Europe/Amsterdam"
DEFAULT_DOMAIN: via.ixvd.net
DB_DRIVER: maria
DB_USER: shlink
DB_NAME: shlink
DB_PASSWORD: shlink
DB_HOST: shlink-db
env_file:
- ../../env/shlink.env
depends_on:
- shlink-db
networks:
- proxy
- internal
shlink-db:
image: mariadb:10.8
restart: always
environment:
MARIADB_ROOT_PASSWORD: <MARIADB_ROOT_PASSWORD>
MARIADB_DATABASE: shlink
MARIADB_USER: shlink
MARIADB_PASSWORD: shlink
volumes:
- /srv/shlink/data:/var/lib/mysql
networks:
- internal

View file

@ -1 +1,2 @@
server configuration for `kid`. server configuration for `kid`.
mostly houses *non-essential* services.

View file

@ -0,0 +1,9 @@
server {
listen 80;
server_name translate.ixvd.net;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://libretranslate:5000;
}
}

View file

@ -0,0 +1,10 @@
version: '2.2'
services:
libretranslate:
image: libretranslate/libretranslate
restart: always
volumes:
- /srv/libretranslate/data:/home/libretranslate/.local/share
- /srv/libretranslate/other/cache:/home/libretranslate/.local/share
networks:
- proxy