compose.yaml 1.3 KB

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