Skip to content

Commit ca0139e

Browse files
committed
2023-10-26 NextCloud - old-menu branch - PR 2 of 2
Adds TZ to NextCloud (which now seems to support timezones). Adds port mapping 9343:443 to reserve 9343 for HTTPS access in the IOTstack context. Makes NextCloud_DB container's TZ variable conform with current syntax. Signed-off-by: Phill Kelley <[email protected]>
1 parent d7d45c7 commit ca0139e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.templates/nextcloud/service.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
image: nextcloud
44
restart: unless-stopped
55
environment:
6+
- TZ=${TZ:-Etc/UTC}
67
- MYSQL_HOST=nextcloud_db
78
- MYSQL_PASSWORD=user_password
89
- MYSQL_DATABASE=nextcloud
910
- MYSQL_USER=nextcloud
1011
ports:
1112
- "9321:80"
13+
- "9343:443"
1214
volumes:
1315
- ./volumes/nextcloud/html:/var/www/html
1416
depends_on:
@@ -22,7 +24,7 @@
2224
build: ./.templates/mariadb/.
2325
restart: unless-stopped
2426
environment:
25-
- TZ=Etc/UTC
27+
- TZ=${TZ:-Etc/UTC}
2628
- PUID=1000
2729
- PGID=1000
2830
- MYSQL_ROOT_PASSWORD=root_password
@@ -34,3 +36,4 @@
3436
- ./volumes/nextcloud/db_backup:/backup
3537
networks:
3638
- nextcloud
39+

0 commit comments

Comments
 (0)