45 lines
983 B
YAML
45 lines
983 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Mock OAuth2 server for local development (run with: docker compose up mock-oauth)
|
|
mock-oauth:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.mock-oauth
|
|
container_name: alinme-mock-oauth
|
|
ports:
|
|
- "9999:9999"
|
|
environment:
|
|
PORT: "9999"
|
|
networks:
|
|
- base-network
|
|
|
|
# PostgreSQL Database
|
|
pg:
|
|
image: postgres:18-alpine
|
|
container_name: alinmedb-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: alinmeuser
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: alinmedb
|
|
ports:
|
|
- "5430:5432"
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
- ./.docker/postgres/docker-entrypoint-initdb:/docker-entrypoint-initdb.d
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "alinmeuser", "-d", "alinmedb"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
networks:
|
|
- base-network
|
|
|
|
volumes:
|
|
pg_data:
|
|
|
|
networks:
|
|
base-network:
|
|
driver: bridge
|