version: '3' services: cannery: image: shibaobun/cannery container_name: cannery restart: always environment: - 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" # 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 expose: - "4000" depends_on: - cannery-db cannery-db: image: postgres:13 container_name: cannery-db environment: - POSTGRES_USER="postgres" - POSTGRES_PASSWORD="postgres" - POSTGRES_DB="cannery" restart: always volumes: - ./data:/var/lib/postgresql/data