From 676623d4c1520c68a69231dab44354005abac02f Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 18 Feb 2022 17:47:30 -0500 Subject: [PATCH] fix docker compose --- docker-compose.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 735f24c..7514eff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,19 +6,26 @@ services: container_name: cannery restart: always environment: - - HOST="your.domain.com" - - DATABASE_URL="ecto://postgres:postgres@cannery-db/cannery" + # HOST must be set! + # - HOST=your.domain.com + - DATABASE_URL=ecto://postgres:postgres@cannery-db/cannery # Use `docker run -it shibaobun/cannery /app/priv/random.sh` to generate a secret key base - # - SECRET_KEY_BASE="change-me-this-is-really-important-seriously-change-it" + # - SECRET_KEY_BASE=change-me-this-is-really-important-seriously-change-it # uncomment to enable public sign ups, not recommended - # - REGISTRATION="public" - # - SMTP_HOST="cannery.example.tld" # must be set! - # - SMTP_PORT="587" # optional - # - SMTP_USERNAME="username" - # - SMTP_PASSWORD="password" - # - SMTP_SSL="false" # optional - # - EMAIL_FROM="no-reply@cannery.example.tld" # optional - # - EMAIL_NAME="Cannery" # optional + # - REGISTRATION=public + # SMTP host must be set! + # - SMTP_HOST=smtp.mailserver.tld + # optional, default is 587 + # - SMTP_PORT=587 + # SMTP username/passwords must be set! + # - SMTP_USERNAME=username + # - SMTP_PASSWORD=password + # optional, default is false + # - SMTP_SSL=false + # optional, default is format below + # - EMAIL_FROM=no-reply@cannery.example.tld + # optional, default is "Cannery" + # - EMAIL_NAME=Cannery expose: - "4000" depends_on: