cannery/docker-compose.yml

30 lines
811 B
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"
2021-09-10 19:17:24 -04:00
# uncomment to enable sign ups, watch for spam!
# - REGISTRATION="public"
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