-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (61 loc) · 1.49 KB
/
Copy pathcompose.yml
File metadata and controls
62 lines (61 loc) · 1.49 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
services:
vaultwarden:
hostname: vaultwarden
logging:
driver: "local"
options:
max-size: "50m"
image: "vaultwarden/server:1.36.0"
# https://github.com/GoogleContainerTools/distroless/blob/64ac73c84c72528d574413fb246161e4d7d32248/common/variables.bzl#L18
user: "65532:65532"
restart: unless-stopped
volumes:
- ./data:/data:rw
env_file:
- .env.vaultwarden
healthcheck:
test:
[
"CMD",
"bash",
"-c",
"[ -f /tmp/.healthy ] || (/healthcheck.sh && touch /tmp/.healthy)",
]
interval: 2s
timeout: 1s
retries: 10
trigger:
depends_on:
vaultwarden:
condition: service_healthy
hostname: trigger
logging:
driver: "local"
options:
max-size: "50m"
image: ghcr.io/hellodword/vaultwarden-less-trigger:latest
# build:
# context: .
# dockerfile: ./docker/distroless-trigger.Dockerfile
env_file:
- .env
ports:
- "${LISTEN_HOST}:8080"
restart: unless-stopped
volumes:
- ./data:/data:ro
- ./scripts:/scripts:ro
- ./git-backup:/git-backup:rw
- ./restic-cache:/restic-cache:rw
- ./config:/config:ro
healthcheck:
test:
[
"CMD",
"bash",
"-c",
"[ -f /tmp/.healthy ] || (curl --fail --silent --show-error http://127.0.0.1:8080/alive && touch /tmp/.healthy)",
]
interval: 2s
timeout: 1s
retries: 10