1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-23 12:00:59 +02:00
coturn/docker/docker-compose-postgresql.yml
Paul Menzel 801832e94f Replace coTURN by Coturn
The official spelling of *Coturn* seems to be just with a capital
starting letter, replace all occurrences of *coTURN* with the command
below.

    git grep -l coTURN | xargs sed -i 's/coTURN/Coturn/g'
2020-03-30 19:28:28 +02:00

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