soaricarus_auth Build / Check (push) Successful in 58s
soaricarus_auth Build / Rustfmt (push) Successful in 1m1s
Release Tagging / release (push) Successful in 1m2s
soaricarus_auth Build / Clippy (push) Successful in 1m7s
soaricarus_auth Build / build (push) Successful in 1m9s
soaricarus_auth Build / Test Suite (push) Successful in 1m20s
soaricarus_auth Build / Check (pull_request) Successful in 36s
soaricarus_auth Build / Test Suite (pull_request) Successful in 49s
soaricarus_auth Build / Rustfmt (pull_request) Successful in 41s
soaricarus_auth Build / Clippy (pull_request) Successful in 47s
soaricarus_auth Build / build (pull_request) Successful in 37s
Reviewed-on: #7
39 lines
963 B
YAML
39 lines
963 B
YAML
services:
|
|
auth_api:
|
|
build:
|
|
context: .
|
|
ssh: ["default"]
|
|
container_name: soaricarus_auth
|
|
ports:
|
|
- "8001:8001"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
auth_db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
auth_db:
|
|
image: postgres:18.6-alpine
|
|
container_name: soaricarus_auth_db
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_AUTH_USER:-soaricarus_op}
|
|
POSTGRES_PASSWORD: ${POSTGRES_AUTH_PASSWORD:-password}
|
|
POSTGRES_DB: ${POSTGRES_AUTH_DB:-soaricarus_auth_db}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql
|
|
ports:
|
|
- "5433:5432"
|
|
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
|