-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathduplicati.yml
61 lines (57 loc) · 1.85 KB
/
duplicati.yml
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
## This docker-compose file is designed to be used as a template in portainer.
## It is widely (completely) inspired from the funkypenguin's cookbook.
## Don't miss his webpage: https://geek-cookbook.funkypenguin.co.nz
##
##
## This template can be set up in your portainer "App template".
## Don't forget to set the following environment variables:
## - DOMAIN => your DNS domainname ( example.com )
## - OAUTH2_PROXY_CLIENT_ID => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_CLIENT_SECRET => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_COOKIE_SECRET => Some random long string
version: "3.0"
services:
duplicati:
image: linuxserver/duplicati:latest
volumes:
- /var/data/volumes/duplicati:/config
- /var/data/volumes/duplicatibackup:/backups
- /:/source:ro
deploy:
networks:
- internal
environment:
- PUID=$PUID
- PGID=$PGID
duplicati-proxy:
image: a5huynh/oauth2_proxy
networks:
- internal
- traefik_public
deploy:
labels:
- traefik.frontend.rule=Host:duplicati.$DOMAIN
- traefik.docker.network=traefik_public
- traefik.port=4180
volumes:
- /var/data/volumes/authenticated-emails.txt:/authenticated-emails.txt
command: |
-cookie-secure=false
-upstream=http://duplicati:8200
-redirect-url=https://duplicati.$DOMAIN
-http-address=http://0.0.0.0:4180
-email-domain=$DOMAIN
-provider=google
-authenticated-emails-file=/authenticated-emails.txt
environment:
- OAUTH2_PROXY_CLIENT_ID=$OAUTH2_PROXY_CLIENT_ID
- OAUTH2_PROXY_CLIENT_SECRET=$OAUTH2_PROXY_CLIENT_SECRET
- OAUTH2_PROXY_COOKIE_SECRET=$OAUTH2_PROXY_COOKIE_SECRET
networks:
traefik_public:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.10.0/24