services: main: image: b3log/siyuan container_name: siyuan-note-${IP}-${PORT}-${UID} command: ['--workspace=/siyuan/${WORKSPACE_NAME}/', '--accessAuthCode=${PASS}'] ports: - ${IP}:${PORT}:6806 volumes: - ${DATA_DIR}:/siyuan/${WORKSPACE_NAME} restart: unless-stopped environment: # A list of time zone identifiers can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ=${TIMEZONE} - PUID=${UID} # Customize user ID - PGID=${UID} # Customize group ID