Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# localhost for dev/local docker testing, or domain/IP if deployed
PHX_HOST="localhost"
# docker compose example url:
DATABASE_URL="postgresql://postgres:postgres@db:5432/fuzzy_catalog"
DATABASE_URL="postgresql://postgres:postgres@db:5432/fuzzy_catalog?sslmode=disable"
SECRET_KEY_BASE="<use mix phx.gen.secret>"
AUDIOBOOKSHELF_URL="https://audiobooks.example.com"
AUDIOBOOKSHELF_API_KEY=""
Expand Down
13 changes: 11 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
services:
db:
image: postgres:alpine
image: postgres:17-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: fuzzy_catalog
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
start_period: 30s
restart: unless-stopped
web:
build:
context: .
Expand All @@ -16,7 +22,10 @@ services:
ports:
- "4000:4000"
depends_on:
- db
db:
condition: service_healthy
restart: true
restart: unless-stopped
env_file: .env.docker
volumes:
postgres_data:
Expand Down