1
0
mirror of https://github.com/ArcticFoxes-net/Coturn-Docker-Compose synced 2024-09-19 18:24:43 -04:00

Run coturn and redis in readonly

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-11-25 03:06:58 -05:00
parent cf6ad42094
commit e99106e13a
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -9,12 +9,14 @@ services:
- ./ssl:/etc/ssl/certs:Z - ./ssl:/etc/ssl/certs:Z
network_mode: "host" network_mode: "host"
user: "65534:65534" user: "65534:65534"
read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:
- ALL - ALL
cap_add: cap_add:
- NET_BIND_SERVICE - NET_BIND_SERVICE
redis: redis:
image: redis:alpine image: redis:alpine
container_name: redis container_name: redis
@ -24,19 +26,21 @@ services:
ports: ports:
- "127.0.0.1:6379:6379" - "127.0.0.1:6379:6379"
user: "999:1000" user: "999:1000"
read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:
- ALL - ALL
acme: acme:
image: neilpang/acme.sh:latest image: neilpang/acme.sh:latest
container_name: acme container_name: acme
restart: unless-stopped
command: daemon command: daemon
volumes: volumes:
- ./acme:/acme.sh - ./acme:/acme.sh
- ./ssl:/ssl - ./ssl:/ssl
network_mode: "host" network_mode: "host"
restart: unless-stopped
volumes: volumes:
redis: redis: