Skip to content

Commit 5f93867

Browse files
authored
Merge pull request #366 from Paraphraser/20210612-nextcloud-experimental
Nextcloud - consistent service definition - experimental - 3 of 3
2 parents 9548b95 + 8b268b8 commit 5f93867

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
11
nextcloud:
2-
image: nextcloud
32
container_name: nextcloud
3+
image: nextcloud
4+
restart: unless-stopped
5+
environment:
6+
- MYSQL_HOST=nextcloud_db
7+
- MYSQL_PASSWORD=Unset # removed during compile
8+
- MYSQL_DATABASE=nextcloud
9+
- MYSQL_USER=nextcloud
410
ports:
511
- "9321:80"
612
volumes:
7-
- ./volumes/nextcloud/html:/var/www/html:rw
8-
- ./volumes/nextcloud/db:/var/lib/mysql # This line is removed during compile
9-
restart: unless-stopped
10-
depends_on:
11-
- nextcloud_db
12-
links:
13+
- ./volumes/nextcloud/html:/var/www/html
14+
depends_on:
1315
- nextcloud_db
1416
networks:
1517
- iotstack_nw
1618
- nextcloud_internal
17-
environment:
18-
- MYSQL_HOST=nextcloud_db
19-
- MYSQL_PASSWORD=Unset
20-
- MYSQL_DATABASE=nextcloud
21-
- MYSQL_USER=nextcloud
22-
- MYSQL_ROOT_PASSWORD=Unset # This line is removed during compile
2319

2420
nextcloud_db:
25-
image: linuxserver/mariadb
2621
container_name: nextcloud_db
27-
volumes:
28-
- Unset:/var/lib/mysql # This line 'Unset' is updated during compile
22+
image: ghcr.io/linuxserver/mariadb
23+
restart: unless-stopped
2924
environment:
30-
- MYSQL_ROOT_PASSWORD=Unset
31-
- MYSQL_PASSWORD=Unset
25+
- TZ=Etc/UTC
26+
- PUID=1000
27+
- PGID=1000
28+
- MYSQL_ROOT_PASSWORD=Unset # removed during compile
29+
- MYSQL_PASSWORD=Unset # removed during compile
3230
- MYSQL_DATABASE=nextcloud
3331
- MYSQL_USER=nextcloud
34-
restart: unless-stopped
32+
volumes:
33+
- ./volumes/nextcloud/db:/config
3534
networks:
3635
- nextcloud_internal
37-
38-

0 commit comments

Comments
 (0)