2021-09-04 16:14:51 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
cannery:
|
2022-02-07 23:15:26 -05:00
|
|
|
image: shibaobun/cannery
|
2021-09-04 16:14:51 -04:00
|
|
|
container_name: cannery
|
2022-01-23 00:02:22 -05:00
|
|
|
restart: always
|
2021-09-04 16:14:51 -04:00
|
|
|
environment:
|
2022-01-23 00:02:22 -05:00
|
|
|
- HOST="your.domain.com"
|
|
|
|
- DATABASE_URL="ecto://postgres:postgres@cannery-db/cannery"
|
2022-02-17 23:41:31 -05:00
|
|
|
# Use `docker run -it shibaobun/cannery /app/priv/random.sh` to generate a secret key base
|
2022-02-18 01:35:31 -05:00
|
|
|
# - SECRET_KEY_BASE="change-me-this-is-really-important-seriously-change-it"
|
2022-02-08 19:59:23 -05:00
|
|
|
# uncomment to enable public sign ups, not recommended
|
2022-02-07 23:15:26 -05:00
|
|
|
# - REGISTRATION="public"
|
2022-02-08 19:59:23 -05:00
|
|
|
# - 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
|
2022-01-23 00:02:22 -05:00
|
|
|
expose:
|
2022-02-07 23:15:26 -05:00
|
|
|
- "4000"
|
2021-09-04 16:14:51 -04:00
|
|
|
depends_on:
|
|
|
|
- cannery-db
|
|
|
|
|
|
|
|
cannery-db:
|
2022-01-23 00:02:22 -05:00
|
|
|
image: postgres:13
|
2021-09-04 16:14:51 -04:00
|
|
|
container_name: cannery-db
|
|
|
|
environment:
|
2022-01-23 00:02:22 -05:00
|
|
|
- POSTGRES_USER="postgres"
|
|
|
|
- POSTGRES_PASSWORD="postgres"
|
|
|
|
- POSTGRES_DB="cannery"
|
2021-09-04 16:14:51 -04:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2022-01-23 00:02:22 -05:00
|
|
|
- ./data:/var/lib/postgresql/data
|