2023-01-10 05:07:57 +01:00
|
|
|
#Todo: fix turn server
|
2019-06-13 16:47:25 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
node:
|
|
|
|
image: "node:lts-alpine"
|
|
|
|
user: "node"
|
|
|
|
working_dir: /home/node/app
|
|
|
|
volumes:
|
|
|
|
- ./server/:/home/node/app
|
|
|
|
command: ash -c "npm i && node index.js"
|
2022-12-23 02:38:56 +01:00
|
|
|
restart: unless-stopped
|
2019-06-13 16:47:25 +02:00
|
|
|
nginx:
|
2020-03-24 15:11:08 +01:00
|
|
|
build:
|
2020-07-14 22:41:30 +02:00
|
|
|
context: ./docker/
|
2020-03-24 15:11:08 +01:00
|
|
|
dockerfile: nginx-with-openssl.Dockerfile
|
|
|
|
image: "nginx-with-openssl"
|
2019-06-13 16:47:25 +02:00
|
|
|
volumes:
|
|
|
|
- ./client:/usr/share/nginx/html
|
2020-07-14 22:12:10 +02:00
|
|
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
- ./docker/certs:/etc/ssl/certs
|
|
|
|
- ./docker/openssl:/mnt/openssl
|
2019-06-13 16:47:25 +02:00
|
|
|
ports:
|
|
|
|
- "8080:80"
|
2022-12-22 01:03:24 +01:00
|
|
|
- "8443:443"
|
2020-07-14 22:12:10 +02:00
|
|
|
env_file: ./docker/fqdn.env
|
2020-03-24 15:11:08 +01:00
|
|
|
entrypoint: /mnt/openssl/create.sh
|
2022-12-22 01:03:24 +01:00
|
|
|
command: ["nginx", "-g", "daemon off;"]
|
2022-12-23 02:38:56 +01:00
|
|
|
restart: unless-stopped
|
2022-12-23 05:04:52 +01:00
|
|
|
coturn:
|
|
|
|
image: coturn/coturn:alpine
|
|
|
|
container_name: coturn_server
|
|
|
|
network_mode: host
|
|
|
|
restart: unless-stopped
|
|
|
|
command:
|
|
|
|
- "--log-file=stdout"
|
|
|
|
- "--external-ip=$$(detect-external-ip)"
|
|
|
|
# - "--no-auth"
|
|
|
|
- "--no-tcp"
|
|
|
|
- "--no-tls"
|
|
|
|
- "--no-dtls"
|
|
|
|
- "--no-cli"
|
|
|
|
# - "--stun-only"
|
|
|
|
- "--listening-ip=0.0.0.0"
|
|
|
|
- "--listening-port=3478"
|
|
|
|
- "--tls-listening-port=5349"
|
|
|
|
- "--min-port=49152"
|
|
|
|
- "--max-port=65535"
|
|
|
|
- "--fingerprint"
|
|
|
|
- "--realm=127.0.0.1"
|
|
|
|
- "-a"
|
|
|
|
- "--user=snapdrop:ifupvrwelijmoyjxmefcsvfxxmcphvxo"
|
|
|
|
- "--lt-cred-mech"
|
|
|
|
# - "--static-auth-secret=ifupvrwelijmoyjxmefcsvfxxmcphvxo"
|