-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnextcloud.yml
50 lines (47 loc) · 1.62 KB
/
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
42
43
44
45
46
47
48
49
50
# Change the following values to match your setup:
# change-me-1 is the domain name for your nextcloud instance
# change-me-2 is the database password for your nextcloud instance, make this strong
# change-me-3 is the root database password for your nextcloud database, make this strong
services:
nextcloud:
image: nextcloud
restart: always
networks:
- dokploy-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.nextcloud-app.rule=Host(`change-me-1`)"
- "traefik.http.routers.nextcloud-app.entrypoints=websecure"
- "traefik.http.routers.nextcloud-app.tls=true"
- "traefik.http.routers.nextcloud-app.tls.certresolver=letsencrypt"
- "traefik.http.services.nextcloud-app.loadbalancer.server.port=80"
- "traefik.http.services.nextcloud-app.loadbalancer.passhostheader=true"
- "traefik.http.routers.nextcloud-app.middlewares=compresstraefik"
- "traefik.http.middlewares.compresstraefik.compress=true"
volumes:
- nextcloud_data:/var/www/html
environment:
- NEXTCLOUD_TRUSTED_DOMAINS=change-me-1
- MYSQL_HOST=nextcloud_db
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=change-me-2
- OVERWRITEPROTOCOL=https
nextcloud_db:
image: mariadb
restart: always
networks:
- dokploy-network
volumes:
- nextcloud_db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=change-me-3
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=change-me-2
volumes:
nextcloud_data:
nextcloud_db_data:
networks:
dokploy-network:
external: true