2021-09-04 16:14:51 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
cannery:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
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"
|
2021-09-04 16:14:51 -04:00
|
|
|
# generate a random base64 string 64 characters long, preferably not from a website
|
2022-01-23 00:02:22 -05:00
|
|
|
- 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!
|
2022-01-23 00:02:22 -05:00
|
|
|
- REGISTRATION="public"
|
|
|
|
expose:
|
|
|
|
- "80"
|
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
|