mirror of
https://github.com/coturn/coturn.git
synced 2025-10-23 12:00:59 +02:00
65 lines
1.2 KiB
YAML
65 lines
1.2 KiB
YAML
version: "3"
|
|
services:
|
|
|
|
# PostgreSQL
|
|
postgresql:
|
|
build:
|
|
context: ./postgresql
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgresql-data:/var/lib/postgresql/data
|
|
env_file:
|
|
- postgresql/postgresql.env
|
|
networks:
|
|
- backend
|
|
|
|
|
|
# coTURN
|
|
coturn:
|
|
build:
|
|
context: ./coturn
|
|
restart: always
|
|
volumes:
|
|
- ${PWD}/coturn/turnserver.conf:/etc/turnserver.conf
|
|
- ${PWD}/coturn/privkey.pem:/etc/ssl/private/privkey.pem
|
|
- ${PWD}/coturn/cert.pem:/etc/ssl/certs/cert.pem
|
|
ports:
|
|
## STUN/TURN
|
|
- "3478:3478"
|
|
- "3478:3478/udp"
|
|
- "3479:3479"
|
|
- "3479:3479/udp"
|
|
- "80:80"
|
|
- "80:80/udp"
|
|
## STUN/TURN SSL
|
|
- "5349:5349"
|
|
- "5349:5349/udp"
|
|
- "5350:5350"
|
|
- "5350:5350/udp"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
# Relay Ports
|
|
# - "49152-65535:49152-65535"
|
|
# - "49152-65535:49152-65535/udp"
|
|
networks:
|
|
- frontend
|
|
- backend
|
|
depends_on:
|
|
- postgresql
|
|
env_file:
|
|
- coturn/coturn.env
|
|
# DB
|
|
- postgresql/postgresql.env
|
|
volumes:
|
|
postgresql-data:
|
|
|
|
networks:
|
|
frontend:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.16.238.0/24
|
|
backend:
|
|
internal: true
|