This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

14
shlink/.env Normal file
View file

@ -0,0 +1,14 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Shlink
SHLINK_WEBUI_PORT=
SHLINK_PORT=
SHLINK_URL=
SHLINK_DBNAME=
SHLINK_DBUSER=
SHLINK_DBPASS=

View file

@ -0,0 +1,62 @@
services:
# https://github.com/shlinkio/shlink/tree/develop
shlink-webui:
image: ${REGISTRY}/shlink-web-client
container_name: shlink-webui
restart: unless-stopped
ports:
- ${SHLINK_WEBUI_PORT:-8081}:8080
volumes:
- ./servers.json:/usr/share/nginx/html/servers.json
networks:
- shlink
shlink:
image: ${REGISTRY}/shlink
container_name: shlink
restart: unless-stopped
ports:
- ${SHLINK_PORT:-8080}:8080
environment:
DEFAULT_DOMAIN: ${SHLINK_URL:-http://localhost:${SHLINK_PORT:-8080}}
BASE_PATH: ${SHLINK_BASE_PATH:-/}
IS_HTTPS_ENABLED: true
DISABLE_TRACKING: true
DB_DRIVER: postgres
DB_HOST: shlink-postgresql
DB_NAME: ${SHLINK_DBNAME:-shlink}
DB_USER: ${SHLINK_DBUSER:-shlink}
DB_PASSWORD: ${SHLINK_DBPASS:-shlink}
REDIS_SERVERS: redis://shlink-redis:6379
REDIS_PUB_SUB_ENABLED: true
networks:
- shlink
shlink-postgresql:
image: ${REGISTRY}/postgres
container_name: shlink-postgresql
restart: unless-stopped
environment:
POSTGRES_DB: ${SHLINK_DBNAME:-shlink}
POSTGRES_USER: ${SHLINK_DBUSER:-shlink}
POSTGRES_PASSWORD: ${SHLINK_DBPASS:-shlink}
volumes:
- ./sql:/var/lib/postgresql/data:rw
networks:
- shlink
shlink-redis:
image: ${REGISTRY}/valkey
container_name: shlink-redis
restart: unless-stopped
volumes:
- ./redis:/data
networks:
- shlink
networks:
shlink:
external: false