2
1
mirror of https://github.com/Thream/api.git synced 2024-07-21 03:38:31 +02:00
api/docker-compose.yml

30 lines
623 B
YAML
Raw 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.0'
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: