From adeec89fd9fa3ca3a90056bd8e371d93eb7b8d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 15 Sep 2023 13:17:14 +0200 Subject: [PATCH] linkace: add --- .env | 4 ++++ docker-compose.yml | 30 ++++++++++++++++++++++++++++-- linkace.env | 3 +++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 linkace.env diff --git a/.env b/.env index c88d33d..f064c7e 100644 --- a/.env +++ b/.env @@ -19,9 +19,11 @@ POSTGRES_HOST=postgres POSTGRES_USER=lukas POSTGRES_PASSWORD=kralovna POSTGRES_PORT=5432 +MYSQL_SERVER=mariadb MYSQL_USER=lukas MYSQL_PASSWORD=kralovna MYSQL_ROOT_PASSWORD=kralovna +MYSQL_PORT=3306 PUID=1000 PGID=100 KAVITA_INTERNAL_PORT=5000 @@ -94,3 +96,5 @@ GITEA_WEBUI_EXTERNAL_PORT=3002 GITEA_WEBUI_INTERNAL_PORT=3000 GITEA_SSH_EXTERNAL_PORT=2022 GITEA_SSH_INTERNAL_PORT=22 +LINKACE_EXTERNAL_PORT=8084 +LINKACE_INTERNAL_PORT=80 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f807b23..db06653 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -693,8 +693,6 @@ services: profiles: - base - infra - - gitea: container_name: gitea @@ -728,6 +726,34 @@ services: - base - infra restart: unless-stopped + + linkace: + image: linkace/linkace:simple + container_name: linkace + networks: + - public + - mariadb + - redis + env_file: + - linkace.env + environment: + - DB_CONNECTION=mysql + - DB_HOST=${MYSQL_SERVER} + - DB_PORT=${MYSQL_PORT} + - DB_DATABASE=${LINKACE_DB} + - DB_USERNAME=${LINKACE_DB_USERNAME} + - DB_PASSWORD=${LINKACE_DB_PASSWORD} + - REDIS_HOST=redis + depends_on: + - mariadb + - redis + ports: + - "${LINKACE_EXTERNAL_PORT}:${LINKACE_INTERNAL_PORT}" + volumes: + - ${DOCKER_STORAGE_PATH}/linkace/backups:/app/storage/app/backups + restart: unless-stopped + profiles: + - base networks: diff --git a/linkace.env b/linkace.env new file mode 100644 index 0000000..f0cc888 --- /dev/null +++ b/linkace.env @@ -0,0 +1,3 @@ +LINKACE_DB=linkace +LINKACE_DB_USERNAME=linkace +LINKACE_DB_PASSWORD=zghhRS&FdK6niiJg5Q5Nr3E4 \ No newline at end of file