cannery/docker-compose.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2021-09-04 16:14:51 -04:00
version: '3'
services:
cannery:
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"
# Use `docker run -it shibaobun/cannery mix phx.gen.secret` to generate a secret key base
- 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
# - 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:
- "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