feat: initial commit

Axum/Postgres server with auth, migrations, and Docker setup.
This commit is contained in:
2026-08-13 13:08:13 +02:00
commit 9617f4415c
33 changed files with 3974 additions and 0 deletions

31
compose.yaml Normal file
View File

@@ -0,0 +1,31 @@
services:
db:
image: postgres:17-alpine
container_name: rustification-postgres
env_file:
- ./.env
ports:
- '5432:5432'
volumes:
- postgresDb:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
server:
build: .
container_name: rustification-server
env_file:
- ./.env
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
ports:
- '3000:3000'
depends_on:
db:
condition: service_healthy
volumes:
postgresDb: