-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (39 loc) · 1.16 KB
/
compose.yaml
File metadata and controls
39 lines (39 loc) · 1.16 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
services:
kopia:
build:
context: .
args:
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
USER_NAME: ${USER_NAME}
GROUP_NAME: ${GROUP_NAME}
env_file:
- .env
hostname: ${HOSTNAME}
container_name: Kopia
user: ${USER_ID}:${GROUP_ID}
restart: unless-stopped
ports:
- 51515:51515
command:
- server
- start
- --tls-cert-file=/vault/${REPO_NAME}.cert
- --tls-key-file=/vault/${REPO_NAME}.key
- --address=0.0.0.0:51515
- --server-control-username=server-control
volumes:
# Mount local folders needed by kopia
- ./config:/app/config
- ./cache:/app/cache
- ./logs:/app/logs
# Mount cert and key files
- ${VAULT_PATH}/${REPO_NAME}.cert:/vault/${REPO_NAME}.cert
- ${VAULT_PATH}/${REPO_NAME}.key:/vault/${REPO_NAME}.key
# Mount repository location
- ${REPO_PATH}:/repository
# Mount path for browsing mounted snaphots
# - /path/to/tmp/dir:/tmp:shared
# Mount local folders to snapshot
# - ${TARGET_LOCATION_1}:/data/${TARGET_LABEL_1}:ro
# - ${TARGET_LOCATION_2}:/data/${TARGET_LABEL_2}:ro