mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2026-02-14 08:44:25 +01:00
Update docker-compose.yml
This commit is contained in:
@@ -3,30 +3,50 @@ services:
|
|||||||
excalidraw:
|
excalidraw:
|
||||||
image: excalidraw/excalidraw:latest
|
image: excalidraw/excalidraw:latest
|
||||||
container_name: excalidraw
|
container_name: excalidraw
|
||||||
|
ports:
|
||||||
|
- 8888:80 # web-ui for drawing
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
command:
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
echo "Replacing WebSocket URL with: $$VITE_APP_WS_SERVER_URL"
|
||||||
|
find /usr/share/nginx/html/assets -type f -name "*.js" -exec sed -i 's|https://oss-collab\.excalidraw\.com|'$$VITE_APP_WS_SERVER_URL'|g' {} +
|
||||||
|
echo "Starting nginx..."
|
||||||
|
nginx -g 'daemon off;'
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: true
|
disable: true
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
ports:
|
- VITE_APP_WS_SERVER_URL=https://draw2gether.example.com # define your custom url for selfhosted excalidraw-room below
|
||||||
- "3000:80"
|
|
||||||
expose:
|
|
||||||
- 80
|
|
||||||
#networks:
|
#networks:
|
||||||
# - proxy
|
# - proxy
|
||||||
#volumes:
|
|
||||||
# - ./:/opt/node_app/app:delegated
|
|
||||||
# - ./package.json:/opt/node_app/package.json
|
|
||||||
# - ./yarn.lock:/opt/node_app/yarn.lock
|
|
||||||
# - notused:/opt/node_app/app/node_modules
|
|
||||||
#labels:
|
#labels:
|
||||||
# - traefik.enable=true
|
# - traefik.enable=true
|
||||||
# - traefik.http.routers.excalidraw.rule=Host(`draw.example.com`)
|
# - traefik.http.routers.excalidraw.rule=Host(`draw.example.com`)
|
||||||
# - traefik.http.services.excalidraw.loadbalancer.server.port=80
|
# - traefik.http.services.excalidraw.loadbalancer.server.port=80
|
||||||
# - traefik.docker.network=proxy
|
# - traefik.docker.network=proxy
|
||||||
# # Part for local lan services only; disable to expose externally
|
|
||||||
# - traefik.http.routers.excalidraw.middlewares=local-ipwhitelist@file
|
excalidraw-room:
|
||||||
|
image: excalidraw/excalidraw-room:latest
|
||||||
|
container_name: excalidraw-room
|
||||||
|
ports:
|
||||||
|
- 8889:80 # web-socket for collaboration
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
restart: unless-stopped
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
#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:
|
#networks:
|
||||||
# proxy:
|
# proxy:
|
||||||
|
|||||||
Reference in New Issue
Block a user