feat: enhance Glance deployment with improved configuration and error handling

This commit is contained in:
martin.fencl
2026-09-01 09:16:39 +02:00
parent 029a82de06
commit 257cafad84
3 changed files with 95 additions and 40 deletions
+11 -8
View File
@@ -1,22 +1,25 @@
# docker-compose-glance.yml
name: glance
services:
glance:
container_name: glance
image: glanceapp/glance:latest
restart: unless-stopped
volumes:
# Relative to project_src (~/.ansible-compose), so no username is hardcoded.
# The playbook creates this directory and uploads glance.yml into it.
# Relative to project_src (~/.ansible-compose/glance), so no username is
# hardcoded. The playbook creates this directory and uploads glance.yml.
# The image entrypoint is /app/glance --config /app/config/glance.yml,
# so the file must be named exactly glance.yml.
- ./glance/config:/app/config
- ./config:/app/config
- /etc/localtime:/etc/localtime:ro
environment:
# Used by the calendar widget and by relative timestamps
- TZ=Europe/Prague
# Optional: raises the GitHub API limit for the releases widget.
# Referenced from glance.yml as ${GITHUB_TOKEN}; inject it as a
# Semaphore secret instead of committing it here.
# - GITHUB_TOKEN=${GITHUB_TOKEN}
env_file:
# Deployed by the playbook from the persistent env file on the VM.
# Provides GITHUB_TOKEN, referenced from glance.yml as ${GITHUB_TOKEN}.
- .env
ports:
- '9445:8080'
- '9445:8080'