all repos — snow-editor @ 13d855e25e8510a57608b0ce77f62cbeed372d0e

small and cozy markdown, and orgmode editor

docker-compose.yml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
services:
  backend:
    build: ./backend
    ports:
      - "41738:41738"
    volumes:
      - ./data:/app/data
    restart: unless-stopped
    environment:
      - NODE_ENV=production
      - PORT=41738
      - DATABASE_PATH=/app/data/snow.db
      - SHARE_ALLOWED_ORIGINS=https://snow.pablomurad.com,http://localhost:41737,http://127.0.0.1:41737
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://localhost:41738/api/health"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s

  editor:
    build:
      context: .
      args:
        VITE_PUBLIC_ORIGIN: https://snow.pablomurad.com
        VITE_ALLOW_SEARCH_INDEXING: "false"
    ports:
      - "41737:41737"
    depends_on:
      backend:
        condition: service_healthy
    restart: unless-stopped