docker-bits/lsio/monica/docker-run.sh
2024-01-23 01:24:19 +00:00

24 lines
1.4 KiB
Bash

# [Monica](https://github.com/monicahq/monica) is an open source personal
# relationship management system, that lets you document your life.
. ./.env
docker run -d \
--name=monica \
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
-e DB_HOST= `# Mariadb DB server hostname.` \
-e DB_PORT= `# Mariadb DB server port.` \
-e DB_USERNAME= `# Mariadb DB user.` \
-e DB_PASSWORD= `# Mariadb DB password.` \
-e DB_DATABASE= `# Mariadb DB name.` \
-e APP_URL=http://localhost:80 `# optional` `# The URL you will use to access Monica including protocol, and port where appropriate.` \
-e TRUSTED_PROXIES= `# optional` `# Set to the IP or netmask covering your reverse proxy, if running behind one. Set to `*` to trust all IPs (**do not** use `*` if exposed to the internet`).` \
-e APP_ENV=local `# optional` `# Set to `production` when exposing the container to anyone else; this also makes https mandatory.` \
-e APP_DISABLE_SIGNUP=true `# optional` `# Set to `false` to enable new account sign-ups.` \
-p 80:80 `# http gui` \
-p 443:443 `# https gui` \
-v ${BASEDIR:-/volume1/docker}/monica/config:/config `# Persistent config files.` \
--restart unless-stopped \
ghcr.io/linuxserver/monica