services:
  meme-protocol:
    build: .
    image: meme-protocol:latest
    container_name: meme-protocol
    restart: unless-stopped
    environment:
      NODE_ENV: production
      HOST: 0.0.0.0
      PORT: 8080
      DATA_DIR: /data
      SITE_URL: ${SITE_URL:-https://bitsforfree.com}
      SEED_DEMO_MEMES: "false"
      TRUST_PROXY: ${TRUST_PROXY:-false}
      ADMIN_TOKEN: ${ADMIN_TOKEN}
      OPENAI_API_KEY: ${OPENAI_API_KEY}
      OPENAI_MODERATION_MODEL: ${OPENAI_MODERATION_MODEL:-gpt-4o-mini}
      AUTO_APPROVE_MIN_SCORE: ${AUTO_APPROVE_MIN_SCORE:-80}
      MAX_IMAGE_DIMENSION: ${MAX_IMAGE_DIMENSION:-1600}
      WEBP_QUALITY: ${WEBP_QUALITY:-85}
    volumes:
      - ./data:/data
    networks:
      npm_proxy:
        ipv4_address: 192.168.99.21

networks:
  npm_proxy:
    external: true
