-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.54 KB
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
62
63
64
65
66
services:
nextcloud-db:
image: mariadb:11.4
container_name: nextcloud-db
restart: always
command: --transaction-isolation=READ-COMMITTED
env_file:
- .env
volumes:
- ./data/db:/var/lib/mysql
networks:
- internal
nextcloud-redis:
image: redis:7
container_name: nextcloud-redis
restart: always
networks:
- internal
nextcloud-app:
image: nextcloud:31
container_name: nextcloud-app
restart: always
env_file:
- .env
environment:
MYSQL_HOST: nextcloud-db
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
REDIS_HOST: nextcloud-redis
NEXTCLOUD_TRUSTED_DOMAINS: ${DOMAIN}
NEXTCLOUD_ADMIN_USER: ${NEXTCLOUD_ADMIN_USER}
NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD}
volumes:
- ./data/nextcloud:/var/www/html
depends_on:
- nextcloud-db
- nextcloud-redis
networks:
- traefik_proxy
- internal
labels:
- "traefik.enable=true"
- "traefik.http.routers.nextcloud.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.nextcloud.entrypoints=websecure"
- "traefik.http.routers.nextcloud.tls.certresolver=lets"
nextcloud-cron:
image: nextcloud:31
container_name: nextcloud-cron
restart: always
entrypoint: /cron.sh
volumes:
- ./data/nextcloud:/var/www/html
networks:
- internal
depends_on:
- nextcloud-app
networks:
traefik_proxy:
external: true
internal:
driver: bridge