-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (30 loc) · 920 Bytes
/
Copy pathcompose.yaml
File metadata and controls
32 lines (30 loc) · 920 Bytes
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
services:
git-backup:
image: ghcr.io/neurekadev/git-backup:edge
container_name: git-backup
env_file:
- .env
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
# entrypoint.sh starts as root and drops to PUID:PGID: chown needs CHOWN, and gosu (not setuid)
# needs SETGID/SETUID to make the switch. Everything else stays dropped.
cap_add:
- CHOWN
- SETGID
- SETUID
networks:
- git-backup
volumes:
- data:/app/data
# Mount the config directory, not the file: a single-file bind mount pins the container to the
# original inode, so host edits saved by write-and-rename never reach the container and hot reload
# silently does nothing. A directory mount lets the container see every edit.
- ./config:/app/config:ro
restart: unless-stopped
networks:
git-backup:
name: git-backup
volumes:
data: