chore: add Docker deployment for Athena and Hermes
This commit is contained in:
parent
4cf671e32d
commit
70fd9a7f28
4 changed files with 41 additions and 27 deletions
|
|
@ -1,40 +1,21 @@
|
|||
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
|
||||
DATABASE_URL: postgresql+psycopg://olympus:FsFs03285310!!!@olympus-db:5432/olympus
|
||||
APP_NAME: Hermes API
|
||||
APP_VERSION: 0.1.0
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
networks:
|
||||
- default
|
||||
- olympus-network
|
||||
|
||||
networks:
|
||||
olympus-network:
|
||||
external: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue