mirror of
https://github.com/SrIzan10/hctv.git
synced 2026-06-06 00:56:56 +00:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
services:
|
|
hctv:
|
|
container_name: hctv
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
pgbouncer:
|
|
condition: service_started
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: .
|
|
dockerfile: apps/web/Dockerfile
|
|
chat:
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
hctv:
|
|
condition: service_started
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: .
|
|
dockerfile: apps/chat/Dockerfile
|
|
postgres:
|
|
image: 'postgres:17-alpine'
|
|
ports:
|
|
- '6767:5432'
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: '${PG_PASS}'
|
|
volumes:
|
|
- 'hctv_pgdata:/var/lib/postgresql/data'
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- 'pg_isready -U postgres'
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
pgbouncer:
|
|
image: 'bitnamilegacy/pgbouncer:1'
|
|
environment:
|
|
- POSTGRESQL_HOST=postgres
|
|
- POSTGRESQL_PORT=5432
|
|
- POSTGRESQL_USERNAME=postgres
|
|
- 'POSTGRESQL_PASSWORD=${PG_PASS}'
|
|
- PGBOUNCER_POOL_MODE=transaction
|
|
- PGBOUNCER_MAX_CLIENT_CONN=100
|
|
- PGBOUNCER_DEFAULT_POOL_SIZE=20
|
|
depends_on:
|
|
- postgres
|
|
redis:
|
|
image: 'redis:7.4-alpine'
|
|
volumes:
|
|
- 'hctv_redis:/data'
|
|
mediamtx:
|
|
image: 'bluenviron/mediamtx:latest'
|
|
ports:
|
|
- '8890:8890/udp'
|
|
volumes:
|
|
- './mediamtx.yml:/mediamtx.yml'
|