version: '3.7'

services:
  app_proxy:
    environment:
      APP_HOST: excalidraw_app_1
      APP_PORT: 80

  app:
    image: ghcr.io/ozencb/excalidraw-persist:0.18.0-persist.7@sha256:8c86a50d299cdcd27e178e80e7567479bf9b6c5eb62d08abbbfcd5ddba60bc26
    restart: on-failure
    environment:
      - PORT=4000
      - NODE_ENV=production
      - DB_PATH=/app/data/database.sqlite
    volumes:
      - ${APP_DATA_DIR}/data:/app/data:rw
