-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
64 lines (60 loc) · 1.37 KB
/
compose.yml
File metadata and controls
64 lines (60 loc) · 1.37 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
# compose.yml - Docker Compose for phpbu
# Usage: docker compose run --rm phpbu --configuration=/config/backup.json
name: phpbu
services:
phpbu:
image: ghcr.io/netresearch/phpbu-docker:latest
build:
context: .
dockerfile: Dockerfile
environment:
TZ: ${TZ:-UTC}
volumes:
- ./config:/config:ro
- ./backups:/backups
# Security hardening
security_opt:
- no-new-privileges:true
read_only: true
cap_drop:
- ALL
tmpfs:
- /tmp:mode=1777,size=64M,noexec,nosuid,nodev
# Development mode (minimal variant)
dev:
build:
context: .
target: minimal
volumes:
- ./config:/config:ro
- ./backups:/backups
environment:
TZ: ${TZ:-UTC}
# Security hardening (same as production)
security_opt:
- no-new-privileges:true
read_only: true
cap_drop:
- ALL
tmpfs:
- /tmp:mode=1777,size=64M,noexec,nosuid,nodev
command: ["--help"]
# Development mode (full variant)
dev-full:
build:
context: .
target: full
volumes:
- ./config:/config:ro
- ./backups:/backups
environment:
TZ: ${TZ:-UTC}
# Security hardening (same as production)
security_opt:
- no-new-privileges:true
read_only: true
cap_drop:
- ALL
tmpfs:
- /tmp:mode=1777,size=64M,noexec,nosuid,nodev
command: ["--help"]