cannery/docker-compose.yml

44 lines
1.3 KiB
YAML
Raw Permalink 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-02-18 17:47:30 -05:00
# HOST must be set!
# - 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 17:47:30 -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-18 17:47:30 -05:00
# - 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
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