mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2026-02-14 08:44:25 +01:00
Update docker-compose.yml
All checks were successful
CI / validateComposeSyntax (push) Successful in 20s
All checks were successful
CI / validateComposeSyntax (push) Successful in 20s
This commit is contained in:
@@ -17,15 +17,26 @@ services:
|
||||
echo "Starting nginx..."
|
||||
nginx -g 'daemon off;'
|
||||
stdin_open: true
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- VITE_APP_WS_SERVER_URL=https://draw2gether.example.com
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:80/ >/dev/null 2>&1 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- VITE_APP_WS_SERVER_URL=https://draw2gether.example.com # define your custom url for selfhosted excalidraw-room below
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- CHOWN
|
||||
- SETGID
|
||||
- SETUID
|
||||
tmpfs:
|
||||
- /tmp:rw,noexec,nosuid,size=64m
|
||||
- /var/cache/nginx/client_temp:rw,noexec,nosuid,size=64m
|
||||
#networks:
|
||||
# - proxy
|
||||
#labels:
|
||||
@@ -42,20 +53,23 @@ services:
|
||||
expose:
|
||||
- 80
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:rw,noexec,nosuid,size=64m
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:80/ >/dev/null 2>&1 || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
start_period: 20s
|
||||
#networks:
|
||||
# - proxy
|
||||
#labels:
|
||||
# - traefik.enable=true
|
||||
# - traefik.http.routers.excalidraw-collab.rule=Host(`draw2gether.example.com`)
|
||||
# - traefik.http.services.excalidraw-collab.loadbalancer.server.port=80
|
||||
# - traefik.docker.network=proxy
|
||||
|
||||
#networks:
|
||||
# proxy:
|
||||
# external: true
|
||||
# - traefik.docker.network=proxy
|
||||
Reference in New Issue
Block a user