This commit is contained in:
Joshua Laymon
2025-08-12 21:53:03 -05:00
parent 97da3bd6c5
commit 2fb9e7c39c
31 changed files with 554 additions and 419 deletions
+20 -11
View File
@@ -1,6 +1,20 @@
version: "3.9"
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: illustrations
POSTGRES_USER: illustrations
POSTGRES_PASSWORD: illustrations
volumes:
- illustrations_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 3s
timeout: 3s
retries: 20
start_period: 5s
web:
build: ./web
env_file:
@@ -11,14 +25,9 @@ services:
ports:
- "8000:8000"
depends_on:
- db
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: illustrations
POSTGRES_USER: illustrations
POSTGRES_PASSWORD: illustrations
volumes:
- db_data:/var/lib/postgresql/data
db:
condition: service_healthy
volumes:
db_data:
illustrations_db_data:
name: illustrations_db_data