migrate: libretranslate, shlink
This commit is contained in:
parent
48c6a57623
commit
047f1745f0
5 changed files with 63 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
33
servers/keymaker/docker-compose.d/docker-compose.shlink.yml
Normal file
33
servers/keymaker/docker-compose.d/docker-compose.shlink.yml
Normal 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
|
|
@ -1 +1,2 @@
|
||||||
server configuration for `kid`.
|
server configuration for `kid`.
|
||||||
|
mostly houses *non-essential* services.
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in a new issue