You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

version: '3.7'
services:
kopia:
image: kopia/kopia:latest
hostname: Hostname
container_name: Kopia
restart: unless-stopped
ports:
- 51515:51515
# Setup the server that provides the web gui
command:
- server
- start
- --disable-csrf-token-checks
- --insecure
- --address=0.0.0.0:51515
- --server-username=USERNAME
- --server-password=SECRET_PASSWORD
environment:
# Set repository password
KOPIA_PASSWORD: "SECRET"
USER: "User"
volumes:
# Mount local folders needed by kopia
- ./config:/app/config
- ./cache:/app/cache
- ./logs:/app/logs
# Mount local folders to snapshot
- ./data:/data:ro
# Mount repository location
- ./repository:/repository
# Mount path for browsing mounted snaphots
- ./tmp:/tmp:shared