-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.65 KB
/
docker-compose.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
version: '3'
services:
cryptomator-webdav: &base
build:
context: .
dockerfile: Dockerfile
image: greycubesgav/cryptomator-webdav
container_name: cryptomator-webdav
env_file:
- .env
ports:
# Bind to the internal interface of the host
- "${CRYPTOMATOR_HOST}:${CRYPTOMATOR_PORT}:8443/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- type: bind
source: ${CRYPTOMATOR_VAULT_SRC_PATH}
target: /vault
read_only: false
bind:
create_host_path: false
cryptomator-webdav-passfile:
# Adds passfile mount to container
<<: *base
volumes:
- /etc/localtime:/etc/localtime:ro
- "${CRYPTOMATOR_VAULT_SRC_PATH}:/vault:rw"
- "${CRYPTOMATOR_VAULT_PASSFILE}:/vault.pass:ro"
cryptomator-webdav-dev: &dev
# Used for local login and debugging of init scripts
<<: *base
volumes:
- /etc/localtime:/etc/localtime:ro
- "${CRYPTOMATOR_VAULT_SRC_PATH}:/vault:rw"
- './scripts/entrypoint.sh:/entrypoint.sh:ro'
- './scripts/init.sh:/init.sh:ro'
- './config/stunnel.conf:/etc/stunnel/stunnel.conf:ro'
entrypoint: /usr/bin/env sh
cryptomator-webdav-passfile-dev:
# Adds passfile mount to dev container
<<: *dev
volumes:
- /etc/localtime:/etc/localtime:ro
- "${CRYPTOMATOR_VAULT_SRC_PATH}:/vault:rw"
- "${CRYPTOMATOR_VAULT_PASSFILE}:/vault.pass:ro"
- './scripts/entrypoint.sh:/entrypoint.sh:ro'
- './scripts/init.sh:/init.sh:ro'
devices:
- /dev/fuse
privileged: true
cryptomator-webdav-env:
<<: *base
entrypoint: /usr/bin/env sh -c 'export | grep CRYPTOMATOR_'