compose.yaml.j2 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. services:
  2. homepage:
  3. image: ghcr.io/gethomepage/homepage:v1.5.0
  4. container_name: homepage
  5. environment:
  6. # (Required) See https://gethomepage.dev/installation/#homepage_allowed_hosts
  7. - HOMEPAGE_ALLOWED_HOSTS=${HOMEPAGE_ALLOWED_HOSTS:?HOMEPAGE_ALLOWED_HOSTS not set}
  8. - LOG_LEVEL=info
  9. # (Optional) Run as a specific user
  10. # - PUID=your-user-id
  11. # - PGID=your-group-id
  12. # (Optional) For secret variables
  13. # - HOMEPAGE_VAR_YOURSECRET=your-secret-key
  14. ports:
  15. - 3000:3000
  16. volumes:
  17. - ./config:/app/config
  18. - ./images:/app/images # for custom background images
  19. - ./icons:/app/icons # for custom icons
  20. restart: unless-stopped
  21. # (Optional) For secure docker socket integration
  22. # dockerproxy:
  23. # image: ghcr.io/tecnativa/docker-socket-proxy:v0.4.0
  24. # container_name: homepage-demo-1-dockerproxy
  25. # environment:
  26. # - CONTAINERS=1 # Allow access to viewing containers
  27. # - SERVICES=1 # Allow access to viewing services (necessary when using Docker Swarm)
  28. # - TASKS=1 # Allow access to viewing tasks (necessary when using Docker Swarm)
  29. # - POST=0 # Disallow any POST operations (effectively read-only)
  30. # ports:
  31. # - 127.0.0.1:2375:2375
  32. # volumes:
  33. # - /run/docker.sock:/run/docker.sock:ro # Mounted as read-only
  34. # restart: unless-stopped