services:
  app:
    build:
      context: ../..
      dockerfile: apps/bookmarks-go/Dockerfile
    ports:
      - "${PORT:-3000}:${PORT:-3000}"
    environment:
      - HOST=0.0.0.0
      - PORT=${PORT:-3000}
      - BOOKMARKS_DB_PATH=/data/bookmarks-go.sqlite
      - BOOKMARKS_PASSWORD=${BOOKMARKS_PASSWORD:-changeme}
      - BOOKMARKS_API_KEY=${BOOKMARKS_API_KEY:-}
      - COOKIE_SECURE=${COOKIE_SECURE:-false}
    volumes:
      - bookmarks-go-data:/data
    restart: unless-stopped

volumes:
  bookmarks-go-data:
