A deployable markdown editor that connects with your self hosted files and lets you edit in a beautiful interface
at main 61 lines 1.4 kB view raw
1version: '3.8' 2 3services: 4 backend: 5 build: 6 context: ./backend 7 dockerfile: Dockerfile 8 container_name: markedit-backend 9 ports: 10 - "8080:8080" 11 environment: 12 # Server 13 - PORT=8080 14 15 # GitHub OAuth (set these in .env file) 16 - GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID} 17 - GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET} 18 19 # Session 20 - SESSION_SECRET=${SESSION_SECRET} 21 22 # Database 23 - DATABASE_PATH=/app/data/markedit.db 24 25 # Git 26 - GIT_CACHE_DIR=/app/data/repos 27 28 # CORS 29 - CORS_ALLOWED_ORIGINS=http://localhost:4321,http://localhost:3000 30 volumes: 31 - markedit-data:/app/data 32 restart: unless-stopped 33 healthcheck: 34 test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/health"] 35 interval: 30s 36 timeout: 3s 37 retries: 3 38 start_period: 10s 39 40 frontend: 41 build: 42 context: ./frontend 43 dockerfile: Dockerfile 44 container_name: markedit-frontend 45 ports: 46 - "3000:80" 47 environment: 48 - PUBLIC_API_URL=http://localhost:8080 49 depends_on: 50 - backend 51 restart: unless-stopped 52 healthcheck: 53 test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"] 54 interval: 30s 55 timeout: 3s 56 retries: 3 57 start_period: 5s 58 59volumes: 60 markedit-data: 61 driver: local