-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (65 loc) · 2.65 KB
/
docker-compose.yml
File metadata and controls
72 lines (65 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
dashy-docker-sync:
# If you want to build the image locally from your Dockerfile:
# build:
# context: .
# dockerfile: Dockerfile
# Or, if you want to use an image from a registry (like GHCR):
image: ghcr.io/jeppestaerk/dashy-docker-sync:latest
container_name: dashy-docker-sync
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# IMPORTANT: Replace '/path/to/your/dashy/conf.yml' with the actual path
# to your Dashy configuration file on the host machine.
# Example: - /mnt/user/appdata/dashy/user-data/conf.yml:/config/conf.yml
- ./config/conf.yml:/config/conf.yml
environment:
# --- Logging ---
- DASHY_LOG_LEVEL=INFO # Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# --- Dashy Configuration File ---
# - DASHY_CONFIG_PATH=/config/conf.yml # Default, if mounted elsewhere
# --- Behavior ---
- DASHY_RESET_ON_START=true # true or false
- DASHY_DOCKER_SECTION_NAME=Docker Containers # Name of the section in Dashy
- DASHY_EXPOSED_BY_DEFAULT=false # true or false
# --- Label Matching for Inclusion/Exclusion/Port ---
# If DASHY_EXPOSED_BY_DEFAULT=false, containers need a label matching this regex to be included.
- DASHY_DOCKER_LABEL_REGEX=^(?:dashy$|dashy\..+)
# If a container has a label matching this regex AND its value is "true", it will be skipped.
- DASHY_DOCKER_IGNORE_LABEL_REGEX=^dashy\.ignore$
# Label key to find the port for the service URL.
- DASHY_DOCKER_PORT_LABEL_REGEX=^dashy\.port$
# --- URL and Item Generation Templates ---
# Hostname/IP used in DASHY_DOCKER_URL_TEMPLATE's {host} placeholder.
# Or set to your domain if services are exposed publicly/via reverse proxy.
- DASHY_DOCKER_URL_HOST=localhost
- DASHY_DOCKER_URL_TEMPLATE=http://{host}:{port}
- DASHY_DOCKER_TITLE_TEMPLATE={name}
- DASHY_DOCKER_ICON_TEMPLATE=hl-{name} # Example: hl-mycontainer for Homarr icons, or mdi-docker, or full URL
# --- Docker Socket Path (if non-standard) ---
# - DOCKER_SOCKET=unix://var/run/docker.sock
networks:
- dashy
dashy:
image: lissy93/dashy
container_name: Dashy
volumes:
- ./config/conf.yml:/app/user-data/conf.yml
ports:
- 4000:8080
environment:
- NODE_ENV=production
- UID=1000
- GID=1000
restart: unless-stopped
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
labels:
- dashy.ignore=true # Skip this container in the list
networks:
dashy: