40 lines
No EOL
644 B
YAML
40 lines
No EOL
644 B
YAML
services:
|
|
|
|
postgres:
|
|
image: postgres:17
|
|
|
|
container_name: hermes-postgres
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
POSTGRES_DB: olympus
|
|
POSTGRES_USER: olympus
|
|
POSTGRES_PASSWORD: olympus123
|
|
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
hermes:
|
|
build: .
|
|
|
|
container_name: hermes-api
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
- postgres
|
|
|
|
environment:
|
|
DATABASE_URL: postgresql+psycopg://olympus:olympus123@postgres:5432/olympus
|
|
APP_NAME: Hermes API
|
|
APP_VERSION: 0.1.0
|
|
|
|
ports:
|
|
- "8000:8000"
|
|
|
|
volumes:
|
|
postgres_data: |