update readme and docker-compose.yml

This commit is contained in:
2022-01-22 23:44:47 -05:00
committed by oliviasculley
parent 67b48e1a3f
commit 50a8a79596
3 changed files with 62 additions and 16 deletions

View File

@@ -5,25 +5,23 @@ services:
build:
context: .
container_name: lokal
environment:
DATABASE_URL: "ecto://postgres:postgres@lokal-db/lokal"
# 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"
ports:
# do not expose this publically!
# always host from behind a reverse proxy, with a properly configured certificate
- "4000:4000"
restart: always
environment:
- DATABASE_URL="ecto://postgres:postgres@lokal-db/lokal"
# 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"
expose:
- "4000"
depends_on:
- lokal-db
lokal-db:
image: postgres:13
container_name: lokal-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lokal
restart: always
environment:
- POSTGRES_USER="postgres"
- POSTGRES_PASSWORD="postgres"
- POSTGRES_DB="lokal"
volumes:
- ./data:/var/lib/postgresql/data
- ./data:/var/lib/postgresql/data