forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.nextcloud.yml
41 lines (39 loc) · 1.36 KB
/
docker-compose.nextcloud.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
services:
nextcloud:
image: nextcloud
container_name: nextcloud
environment:
- MYSQL_HOST=nextcloud_mysql
# - APACHE_DISABLE_REWRITE_IP=1
# - TRUSTED_PROXIES="172.18.0.17"
env_file:
- ./.nextcloud.env
volumes:
- nextcloud_data:/var/www/html
networks:
- cvat
depends_on:
- mysql
labels:
- 'traefik.enable=true'
- 'traefik.http.services.nextcloud.loadbalancer.server.port=80'
- 'traefik.http.routers.nextcloud.rule=Host(`files.icarewounds.gradiant.org`)'
- 'traefik.http.routers.nextcloud.entrypoints=websecure'
- 'traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt'
- 'traefik.http.routers.nextcloud.middlewares=icarewounds_ips_whitelist'
# - 'traefik.http.routers.nextcloud.middlewares=nextcloud_redirectregex@docker'
# - 'traefik.http.middlewares.nextcloud_redirectregex.redirectregex.permanent=true'
# - 'traefik.http.middlewares.nextcloud_redirectregex.redirectregex.regex=https://(.*)/.well-known/(?:card|cal)dav'
# - 'traefik.http.middlewares.nextcloud_redirectregex.redirectregex.replacement=https://$${1}/remote.php/dav'
mysql:
image: mysql:8
container_name: nextcloud_mysql
env_file:
- ./.nextcloud.env
networks:
- cvat
volumes:
- mysql_data:/var/lib/mysql
volumes:
nextcloud_data:
mysql_data: