fix docker compose

This commit is contained in:
shibao 2022-02-18 17:47:30 -05:00
parent 25bca35e0e
commit 676623d4c1
1 changed files with 18 additions and 11 deletions

View File

@ -6,19 +6,26 @@ services:
container_name: cannery container_name: cannery
restart: always restart: always
environment: environment:
- HOST="your.domain.com" # HOST must be set!
- DATABASE_URL="ecto://postgres:postgres@cannery-db/cannery" # - 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 # 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 # uncomment to enable public sign ups, not recommended
# - REGISTRATION="public" # - REGISTRATION=public
# - SMTP_HOST="cannery.example.tld" # must be set! # SMTP host must be set!
# - SMTP_PORT="587" # optional # - SMTP_HOST=smtp.mailserver.tld
# - SMTP_USERNAME="username" # optional, default is 587
# - SMTP_PASSWORD="password" # - SMTP_PORT=587
# - SMTP_SSL="false" # optional # SMTP username/passwords must be set!
# - EMAIL_FROM="no-reply@cannery.example.tld" # optional # - SMTP_USERNAME=username
# - EMAIL_NAME="Cannery" # optional # - 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: expose:
- "4000" - "4000"
depends_on: depends_on: