This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
api/docker-compose.yml

30 lines
623 B
YAML
Raw Permalink Normal View History

2021-10-24 04:06:16 +02:00
version: '3.0'
services:
thream-api:
container_name: ${COMPOSE_PROJECT_NAME}
build:
context: './'
2021-10-24 04:18:18 +02:00
env_file:
- '.env'
2021-10-24 04:06:16 +02:00
ports:
- '${PORT}:${PORT}'
depends_on:
2021-10-24 04:18:18 +02:00
- 'thream-database'
2021-10-24 04:06:16 +02:00
volumes:
2021-10-24 04:18:18 +02:00
- './uploads:/usr/src/app/uploads'
2021-10-24 04:06:16 +02:00
restart: 'unless-stopped'
thream-database:
2021-10-24 04:18:18 +02:00
container_name: 'thream-database'
image: 'postgres:14.2'
2021-10-24 04:06:16 +02:00
environment:
2021-10-24 04:18:18 +02:00
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'thream'
2021-10-24 04:06:16 +02:00
volumes:
2021-10-24 04:18:18 +02:00
- 'database-volume:/var/lib/postgresql/data'
2021-10-24 04:06:16 +02:00
restart: 'unless-stopped'
volumes:
database-volume: