snow-editor

small markdown and org-mode editor
Log | Files | Refs | README

docker-compose.yml (796B)


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