Files
rustification-server/compose.yaml
MDietermann 9617f4415c feat: initial commit
Axum/Postgres server with auth, migrations, and Docker setup.
2026-08-13 13:08:13 +02:00

32 lines
674 B
YAML

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: