Merge pull request #881 from strukturag/docker-compose-nats

docker: Use bind-mount for "gnatsd.conf"
This commit is contained in:
Joachim Bauch 2024-12-12 11:25:47 +01:00 committed by GitHub
commit df1c582df2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ services:
platforms:
- "linux/amd64"
volumes:
- ./server.conf:/config/server.conf
- ./server.conf:/config/server.conf:ro
network_mode: host
restart: unless-stopped
depends_on:
@ -18,7 +18,10 @@ services:
nats:
image: nats:2.10
volumes:
- ./gnatsd.conf:/config/gnatsd.conf
- type: bind
source: ./gnatsd.conf
target: /config/gnatsd.conf
read_only: true
command: ["-c", "/config/gnatsd.conf"]
network_mode: host
restart: unless-stopped
@ -28,7 +31,7 @@ services:
command: ["janus", "--full-trickle"]
network_mode: host
restart: unless-stopped
coturn:
image: coturn/coturn:4.6
network_mode: host