add .env.example and docker-compose.dev.yml for local dev.

Postgres 16, pgAdmin 8, and env placeholders for backend, ALTCHA, and throttles.
This commit is contained in:
2026-09-27 22:49:17 +02:00
parent 90c2bbdbdd
commit 4cb44e4582
2 changed files with 72 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
services:
postgres:
image: postgres:16
container_name: ${COMPOSE_PROJECT_NAME}_postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- private_image_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 10
pgadmin:
image: dpage/pgadmin4:8
container_name: ${COMPOSE_PROJECT_NAME}_pgadmin
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- '${PGADMIN_PORT}:80'
volumes:
- private_image_pgadmin_data:/var/lib/pgadmin
depends_on:
postgres:
condition: service_healthy
volumes:
private_image_postgres_data:
private_image_pgadmin_data: