diff --git a/.env b/.env index ac5b00f..599e4b0 100644 --- a/.env +++ b/.env @@ -13,7 +13,51 @@ TZ=America/Chicago ADMIN_USERNAME=akanealw ADMIN_PASSWORD=8ung1e1! -#NEXTCLOUD -POSTGRES_PASSWORD=8ung1e1! -POSTGRES_DB=nextcloud -POSTGRES_USER=nextcloud \ No newline at end of file +#LINKDING +# Docker container name +LD_CONTAINER_NAME=linkding +# Port on the host system that the application should be published on +LD_HOST_PORT=9090 +# Directory on the host system that should be mounted as data dir into the Docker container +LD_HOST_DATA_DIR=./appdata/linkding + +# Can be used to run linkding under a context path, for example: linkding/ +# Must end with a slash `/` +LD_CONTEXT_PATH= +# Username of the initial superuser to create, leave empty to not create one +LD_SUPERUSER_NAME=akanealw +# Password for the initial superuser, leave empty to disable credentials authentication and rely on proxy authentication instead +LD_SUPERUSER_PASSWORD=8ung1e1! +# Option to disable background tasks +LD_DISABLE_BACKGROUND_TASKS=False +# Option to disable URL validation for bookmarks completely +LD_DISABLE_URL_VALIDATION=False +# Enables support for authentication proxies such as Authelia +LD_ENABLE_AUTH_PROXY=False +# Name of the request header that the auth proxy passes to the application to identify the user +# See docs/Options.md for more details +LD_AUTH_PROXY_USERNAME_HEADER= +# The URL that linkding should redirect to after a logout, when using an auth proxy +# See docs/Options.md for more details +LD_AUTH_PROXY_LOGOUT_URL= +# List of trusted origins from which to accept POST requests +# See docs/Options.md for more details +LD_CSRF_TRUSTED_ORIGINS=akanealw.com + +# Database settings +# These are currently only required for configuring PostreSQL. +# By default, linkding uses SQLite for which you don't need to configure anything. + +# Database engine, can be sqlite (default) or postgres +LD_DB_ENGINE=sqlite +# Database name (default: linkding) +LD_DB_DATABASE=linkding +# Username to connect to the database server (default: linkding) +LD_DB_USER=linkding +# Password to connect to the database server +LD_DB_PASSWORD=8ung1e1! +# The hostname where the database is hosted (default: localhost) +LD_DB_HOST= +# Port use to connect to the database server +# Should use the default port if not set +LD_DB_PORT= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b43cdab..9e73b69 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,61 +13,14 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - nextcloud-db: - container_name: nextcloud-db - image: postgres:alpine - restart: always + linkding: + container_name: "${LD_CONTAINER_NAME:-linkding}" + image: sissbruecker/linkding:latest + ports: + - "${LD_HOST_PORT:-9090}:9090" volumes: - - ./appdata/nextcloud/db/data:/var/lib/postgresql/data:z + - "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data" env_file: - .env - - nextcloud-redis: - container_name: nextcloud-redis - image: redis:alpine - restart: always - - nextcloud: - container_name: nextcloud - image: nextcloud:fpm-alpine - restart: always - volumes: - - ./appdata/nextcloud/html:/var/www/html:z - - /mnt/storage:/storage - environment: - - POSTGRES_HOST=nextcloud-db - - REDIS_HOST=nextcloud-redis - env_file: - - .env - depends_on: - - nextcloud-db - - nextcloud-redis - - nextcloud-web: - container_name: nextcloud-web - image: nginx:alpine - restart: always - ports: - - 192.168.1.33:8080:80 - volumes: - - ./appdata/nextcloud/nginx.conf:/etc/nginx/nginx.conf - - ./appdata/nextcloud/html:/var/www/html:z,ro - depends_on: - - nextcloud - - nextcloud-cron: - container_name: nextcloud-cron - image: nextcloud:fpm-alpine - restart: always - volumes: - - ./appdata/nextcloud/html:/var/www/html:z - entrypoint: /cron.sh - depends_on: - - nextcloud-db - - nextcloud-redis - - spdf: - container_name: spdf - image: frooodle/s-pdf - ports: - - '8085:8080' + restart: unless-stopped + \ No newline at end of file