26 lines
864 B
YAML
26 lines
864 B
YAML
name: homepage
|
|
services:
|
|
app:
|
|
image: ghcr.io/gethomepage/homepage:latest
|
|
depends_on:
|
|
- dockerproxy
|
|
environment:
|
|
DOCKER_TEMPLATE_CREATED: true
|
|
ports:
|
|
- "3001:3000"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config:/app/config # Make sure your local config directory exists
|
|
|
|
dockerproxy:
|
|
image: ghcr.io/tecnativa/docker-socket-proxy:latest
|
|
environment:
|
|
- CONTAINERS=1 # Allow access to viewing containers
|
|
- SERVICES=1 # Allow access to viewing services (necessary when using Docker Swarm)
|
|
- TASKS=1 # Allow access to viewing tasks (necessary when using Docker Swarm)
|
|
- POST=0 # Disallow any POST operations (effectively read-only)
|
|
ports:
|
|
- "127.0.0.1:2375:2375"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only |