cannery/docker-compose.yml

32 lines
927 B
YAML
Raw Normal View History

2021-09-04 16:14:51 -04:00
version: '3'
services:
cannery:
build:
context: .
container_name: cannery
environment:
2021-09-10 19:17:24 -04:00
HOST: "your.domain.com"
2021-09-04 16:14:51 -04:00
DATABASE_URL: "ecto://postgres:postgres@cannery-db/cannery"
# generate a random base64 string 64 characters long, preferably not from a website
SECRET_KEY_BASE: "change-me-to-something-random-this-is-really-important-change-it"
2021-09-10 19:17:24 -04:00
# uncomment to enable sign ups, watch for spam!
2021-09-04 16:54:48 -04:00
# REGISTRATION: "public"
2021-09-04 16:14:51 -04:00
ports:
# do not expose this publically!
# always host from behind a reverse proxy with a properly configured certificate
2021-09-10 19:17:24 -04:00
- "80:80"
2021-09-04 16:14:51 -04:00
restart: always
depends_on:
- cannery-db
cannery-db:
image: postgres:9.6
container_name: cannery-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cannery
restart: always
volumes:
- ./data:/var/lib/postgresql/data