Files
soaricarus_auth/docker-compose.yaml
T
phoenix 2d376524eb
Release Tagging / release (push) Failing after 56s
icarus_auth Build / Check (push) Successful in 2m2s
icarus_auth Build / Test Suite (push) Successful in 2m19s
icarus_auth Build / Rustfmt (push) Successful in 32s
icarus_auth Build / build (push) Successful in 1m44s
icarus_auth Build / Clippy (push) Successful in 2m25s
Update postgres (#3)
Reviewed-on: phoenix/icarus_auth#3
2026-07-09 10:35:55 -04:00

40 lines
969 B
YAML

version: '3.8' # Use a recent version
services:
auth_api:
build:
context: .
ssh: ["default"]
container_name: icarus_auth
ports:
- "8001:8001"
env_file:
- .env
depends_on:
auth_db:
condition: service_healthy
restart: unless-stopped
auth_db:
image: postgres:18.4-alpine
container_name: icarus_auth_db
environment:
POSTGRES_USER: ${POSTGRES_AUTH_USER:-icarus_op}
POSTGRES_PASSWORD: ${POSTGRES_AUTH_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_AUTH_DB:-icarus_auth_db}
volumes:
- postgres_data:/var/lib/postgresql
ports: []
healthcheck:
# Checks if Postgres is ready to accept connections
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: always
volumes:
postgres_data:
driver: local # Use the default local driver