mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-24 16:01:02 +00:00
36 lines
870 B
YAML
36 lines
870 B
YAML
services:
|
|
photofield:
|
|
image: "ghcr.io/smilyorg/photofield:latest"
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_BIND_ADDRESS}:${PANEL_APP_PORT_HTTP}:8080"
|
|
environment:
|
|
- PHOTOFIELD_ADDRESS=:8080
|
|
- PHOTOFIELD_DATA_DIR=/app/data
|
|
- TZ=${TZ}
|
|
volumes:
|
|
- "${APP_DATA_DIR}:/app/data"
|
|
- "${PHOTO_LIBRARY_DIR}:/app/photos:ro"
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:rw,nosuid,nodev,noexec,size=64m,mode=1777
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:8080/ || exit 1"]
|
|
interval: 20s
|
|
timeout: 5s
|
|
retries: 6
|
|
start_period: 15s
|
|
labels:
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|