# Docker Compose configuration for BigBearCasaOS Write Freely Service
# This service provides a web interface for managing Write Freely
# Version: 0.15

# Name of the big-bear-write-freely application
name: big-bear-write-freely
# Service definitions for the big-bear-write-freely application
services:
  # Main service configuration for the Write Freely application
  # This service provides a web interface running on port 8080
  big-bear-write-freely:
    # Name of the container
    container_name: big-bear-write-freely
    # Image to be used for the container specifies the write-freely version and source
    image: nephatrine/write-freely:0.16
    # Container restart policy - restarts the container unless manually stopped
    restart: unless-stopped
    # Environment variables for service configuration
    # These settings control the Write Freely application behavior
    environment:
      TZ: "UTC"
      PUID: 1000
      PGID: 1000
    # Volume mappings required for system integration
    # These mounts allow the container to interact with the host system
    volumes:
      - /DATA/AppData/$AppID/data/config:/mnt/config
    # Map port 8080 on the host to port 8080 on the container
    ports:
      - 70:70/tcp
      - 8080:8080/tcp
    x-casaos:
      envs:
        - container: TZ
          description:
            en_us: 'Container Variable: TZ'
        - container: PUID
          description:
            en_us: 'Container Variable: PUID'
        - container: PGID
          description:
            en_us: 'Container Variable: PGID'
      volumes:
        - container: /mnt/config
          description:
            en_us: 'Container Path: /mnt/config'
      ports:
        - container: "70"
          description:
            en_us: 'Container Port: 70'
        - container: "8080"
          description:
            en_us: 'Container Port: 8080'
x-casaos:
  # Supported CPU architectures for this application
  architectures:
    - amd64
    - arm64
  # Main service for this application
  main: big-bear-write-freely
  # Detailed description for the application
  description:
    en_us: WriteFreely is a clean, minimalist publishing platform made for writers. Start a blog, share knowledge within your organization, or build a community around the shared act of writing.
  # Brief tagline for the application
  tagline:
    en_us: Markdown-based publishing platform.
  # Developer's information
  developer: nephatrine
  # Author of this particular configuration
  author: BigBearTechWorld
  # Icon URL for the application
  icon: https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps/apps/write-freely/logo.png
  # Thumbnail image for the application (if any)
  thumbnail: ""
  # Installation tips
  tips:
    before_install:
      en_us: |
        Read this before installing: https://community.bigbeartechworld.com/t/added-write-freely-to-bigbearcasaos/3164?u=dragonfire1119
  # Title for the application
  title:
    en_us: Write Freely
  # Category under which the application falls
  category: BigBearCasaOS
  # Default port mapping for the application
  port_map: "8080"
