Files
Website/compose.yaml
KenanZhu 9065a0d3cf
Build and test website container / build (push) Successful in 11m33s
Build and smoke-test AutoLibrary as a container
2026-11-04 10:45:57 +08:00

34 lines
949 B
YAML

services:
website:
image: ${AUTOLIBRARY_IMAGE:?Set AUTOLIBRARY_IMAGE}
user: "${AUTOLIBRARY_UID:-10001}:${AUTOLIBRARY_GID:-10001}"
network_mode: host
environment:
AUTOLIBRARY_HTTP_PORT: "${AUTOLIBRARY_HTTP_PORT:-3003}"
restart: unless-stopped
stop_grace_period: 20s
read_only: true
tmpfs:
- /tmp:mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
volumes:
- type: bind
source: ${AUTOLIBRARY_CONFIG:?Set AUTOLIBRARY_CONFIG}
target: /app/config.json
read_only: true
bind:
create_host_path: false
- type: bind
source: ${AUTOLIBRARY_DATA_DIR:?Set AUTOLIBRARY_DATA_DIR}
target: /app/backend/data
bind:
create_host_path: false
- type: bind
source: ${AUTOLIBRARY_LOG_DIR:?Set AUTOLIBRARY_LOG_DIR}
target: /app/logs
bind:
create_host_path: false