excalidraw/docker-compose.yml

45 lines
925 B
YAML
Raw Normal View History

version: "3.8"
services:
excalidraw:
stdin_open: true
build:
context: .
target: development
container_name: excalidraw
ports:
- "3000:3000"
restart: on-failure
healthcheck:
disable: true
environment:
- NODE_ENV=development
volumes:
- node_modules:/opt/node_app/node_modules
- ./:/opt/node_app/
excalidraw-storage-backend:
stdin_open: true
build:
context: https://github.com/kitsteam/excalidraw-storage-backend.git#main
target: production
ports:
- "8080:8080"
environment:
STORAGE_URI: redis://:${REDIS_PASSWORD}@redis:6379
STORAGE_TTL: 2592000000
excalidraw-room:
image: excalidraw/excalidraw-room
ports:
- "5001:80"
redis:
image: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
volumes:
redis_data:
node_modules: