2
1
mirror of https://github.com/Thream/api.git synced 2024-07-06 21:00:11 +02:00
api/compose.yaml

28 lines
631 B
YAML
Raw Permalink Normal View History

2023-07-22 16:26:27 +02:00
services:
thream-api:
container_name: "thream-api"
image: "thream-api"
restart: "unless-stopped"
network_mode: "host"
2023-07-22 16:26:27 +02:00
build:
context: "./"
env_file: ".env"
2023-07-22 16:26:27 +02:00
depends_on:
- "thream-database"
2023-07-22 16:26:27 +02:00
thream-database:
container_name: "thream-database"
image: "postgres:15.4"
restart: "unless-stopped"
network_mode: "host"
env_file: ".env"
2023-07-22 16:26:27 +02:00
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- "thream-postgres-data:/var/lib/postgresql/data"
2023-07-22 16:26:27 +02:00
volumes:
thream-postgres-data: