cannery/docker-compose.yml

28 lines
681 B
YAML
Raw Normal View History

2021-09-04 16:19:23 -04:00
version: '3'
services:
lokal:
build:
context: .
container_name: lokal
2022-01-22 23:44:47 -05:00
restart: always
2021-09-04 16:19:23 -04:00
environment:
2022-01-22 23:44:47 -05:00
- DATABASE_URL="ecto://postgres:postgres@lokal-db/lokal"
2021-09-04 16:19:23 -04:00
# generate a random base64 string 64 characters long, preferably not from a website
2022-01-22 23:44:47 -05:00
- SECRET_KEY_BASE="change-me-to-something-random-this-is-really-important-change-it"
expose:
- "4000"
2021-09-04 16:19:23 -04:00
depends_on:
- lokal-db
lokal-db:
image: postgres:13
container_name: lokal-db
restart: always
2022-01-22 23:44:47 -05:00
environment:
- POSTGRES_USER="postgres"
- POSTGRES_PASSWORD="postgres"
- POSTGRES_DB="lokal"
2021-09-04 16:19:23 -04:00
volumes:
2022-01-22 23:44:47 -05:00
- ./data:/var/lib/postgresql/data