Skip to content

Commit ca2eb44

Browse files
committed
Normalize compose: experiments/*, db-backup, autogenerate-hosts
- db-backup: IMAGE_VERSION for image tag; service key order; networks order - autogenerate-hosts: explicit autogenerate-hosts-net - experiments: consistent image/container/hostname/restart/env_file/volumes/networks order - avahi: drop invalid depends_on mdns_repeater - frigate: comment published port 5000; trim tmpfs comment - matrix: synapse/synapse, element-web/element-web (match service names) - nextcloud: image tag env, hostname/container_name, README + gitignore/rsync - qdrant: IMAGE_VERSION default, README + .env.example (no required env_file) - portainer/grafana: no env_file (vars are for host-side backup scanner only) - comfy-ui: GPU_COUNT default 1, no env_file; stable-diffusion keeps env_file - rtlamr2mqtt: config under config/rtlamr2mqtt.yaml.default + mount path - camera2prusa: bridge network + env_file + IMAGE_VERSION in .env.example - chronograf/influxdb/openwakeword/telegraf/trimetd/rtl_433/homebox: tidy Made-with: Cursor
1 parent 7cb66ed commit ca2eb44

34 files changed

Lines changed: 179 additions & 91 deletions

apps/autogenerate-hosts/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ services:
99
volumes:
1010
- "${DB_PATH}:${DB_PATH}"
1111
- "${HOSTSFILE_PATH}:/dest"
12+
networks:
13+
- autogenerate-hosts
14+
15+
networks:
16+
autogenerate-hosts:
17+
name: autogenerate-hosts-net

apps/db-backup/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ for `.env` files containing `BACKUP_DATABASE_URLS`, backs them up on a
66
configurable interval, and applies tiered retention (hourly/daily/weekly/
77
monthly/yearly).
88

9-
Image: [romkey/hackstack-db-backup](https://github.com/romkey/hackstack-db-backup)
10-
(`ghcr.io/romkey/hackstack-db-backup`)
9+
Image: [romkey/hackstack-db-backup](https://github.com/romkey/hackstack-db-backup) on GHCR. The compose file uses **`IMAGE_VERSION`** from `.env` (default **`latest`** in the image reference).
1110

1211
## How it works
1312

apps/db-backup/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
22
db-backup:
3-
image: ghcr.io/romkey/hackstack-db-backup:latest
4-
hostname: db-backup
3+
image: ghcr.io/romkey/hackstack-db-backup:${IMAGE_VERSION:-latest}
54
container_name: db-backup
5+
hostname: db-backup
66
restart: unless-stopped
77
user: "${BACKUP_UID:-0}:${BACKUP_GID:-0}"
88
env_file:
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
services:
22
avahi:
33
image: ydkn/avahi:${IMAGE_VERSION:-latest}
4-
hostname: avahi
54
container_name: avahi
5+
hostname: avahi
66
restart: unless-stopped
7-
depends_on:
8-
- mdns_repeater
97
volumes:
108
- ./services:/etc/avahi/services
119
networks:
1210
- mdns
11+
1312
networks:
1413
mdns:
15-
name: mdns-net
1614
external: true
15+
name: mdns-net

experiments/camera2prusa/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Optional: pin image tag
2+
#IMAGE_VERSION=latest
3+
14
CAMERA_URLS=http://192.168.15.94:8080
25
# rtsp://username:password@192.168.1.11/live0,
36
# http://username:password@192.168.1.12/stream.mjpeg,

experiments/camera2prusa/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ services:
66
restart: unless-stopped
77
env_file:
88
- .env
9+
networks:
10+
- camera2prusa
11+
12+
networks:
13+
camera2prusa:
14+
name: camera2prusa-net

experiments/chronograf/docker-compose.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ services:
33
image: chronograf:${IMAGE_VERSION:-latest}
44
container_name: chronograf
55
hostname: chronograf
6-
# command: chronograf --influxdb-url=http://influxdb:8086
76
restart: unless-stopped
8-
# ports:
9-
# - 8888:8888
7+
env_file:
8+
- .env
109
volumes:
1110
- ../../lib/chronograf:/var/lib/chronograf
11+
# command: chronograf --influxdb-url=http://influxdb:8086
12+
# ports:
13+
# - 8888:8888
1214
networks:
1315
- proxy
1416
- influxdb
15-
env_file:
16-
- .env
17+
1718
networks:
1819
proxy:
19-
name: nginx-proxy-net
2020
external: true
21+
name: nginx-proxy-net
2122
influxdb:
22-
name: influxdb-net
2323
external: true
24+
name: influxdb-net

experiments/comfy-ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Stable Diffusion web interface
66

77
### Environment Variables
88

9-
Copy `.env.example` to `.env` and configure:
9+
Copy `.env.example` to `.env` and configure **`GPU_COUNT`** (used by Compose for the GPU reservation; default is **`1`** if unset):
1010

1111
```bash
1212
cp .env.example .env

experiments/comfy-ui/docker-compose.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ services:
55
container_name: comfy-ui
66
hostname: comfy-ui
77
restart: unless-stopped
8-
networks:
9-
- proxy
108
volumes:
119
- ../../lib/comfy-ui:/storage
1210
# ports:
1311
# - 8188:8188
14-
env_file:
15-
- .env
12+
networks:
13+
- proxy
1614
deploy:
1715
resources:
1816
reservations:
1917
devices:
2018
- driver: nvidia
21-
count: "${GPU_COUNT}"
19+
count: "${GPU_COUNT:-1}"
2220
capabilities: [gpu]
21+
2322
networks:
2423
proxy:
25-
name: nginx-proxy-net
2624
external: true
25+
name: nginx-proxy-net

experiments/frigate/docker-compose.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@ services:
22
frigate:
33
image: ghcr.io/blakeblackshear/frigate:${IMAGE_VERSION:-stable}
44
container_name: frigate
5-
privileged: true
65
hostname: frigate
6+
privileged: true
77
restart: unless-stopped
88
shm_size: 256mb
9-
networks:
10-
- frigate
11-
- proxy
12-
# devices:
13-
# - /dev/dri/renderD128:/dev/dri/renderD128 # for intel hwaccel
9+
env_file:
10+
- .env
1411
volumes:
1512
- /dev/bus/usb:/dev/bus/usb
1613
- /etc/localtime:/etc/localtime:ro
1714
- ../../lib/frigate/config:/config:rw
1815
- ../../lib/frigate/media:/media/frigate:rw
19-
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
16+
- type: tmpfs
2017
target: /tmp/cache
2118
tmpfs:
2219
size: 100000000
23-
ports:
24-
- 5000:5000
20+
# devices:
21+
# - /dev/dri/renderD128:/dev/dri/renderD128 # for intel hwaccel
22+
# ports:
23+
# - 5000:5000
2524
# - 8554:10554 # RTSP feeds
2625
# - 8555:10555/tcp # WebRTC over tcp
2726
# - 8555:10555/udp # WebRTC over udp
28-
env_file:
29-
- .env
27+
networks:
28+
- frigate
29+
- proxy
30+
3031
networks:
3132
frigate:
3233
name: frigate-net

0 commit comments

Comments
 (0)