networks:
  1panel-network:
    external: true

services:
  weblate:
    image: weblate/weblate:5.16.0.0
    container_name: ${CONTAINER_NAME}
    labels:
      createdBy: "Apps"
    restart: always
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:8080
    tmpfs:
      - /run
      - /tmp
    read_only: true
    volumes:
      - ${WEBLATE_ROOT_PATH}/data:/app/data
      - ${WEBLATE_ROOT_PATH}/cache:/app/cache
    environment:
      - TZ=Asia/Shanghai
      - WEBLATE_TIME_ZONE=Asia/Shanghai
      - WEBLATE_WORKERS=2
      - WEBLATE_DEBUG=0
      - WEBLATE_LOGLEVEL=INFO
      - WEBLATE_ALLOWED_HOSTS=*
      - POSTGRES_DATABASE=weblate
      - CLIENT_MAX_BODY_SIZE=200M
