Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextcloud - consistent service definition - experimental - 3 of 3 #366

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 18 additions & 21 deletions .internal/templates/services/nextcloud/template.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
nextcloud:
image: nextcloud
container_name: nextcloud
image: nextcloud
restart: unless-stopped
environment:
- MYSQL_HOST=nextcloud_db
- MYSQL_PASSWORD=Unset # removed during compile
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
ports:
- "9321:80"
volumes:
- ./volumes/nextcloud/html:/var/www/html:rw
- ./volumes/nextcloud/db:/var/lib/mysql # This line is removed during compile
restart: unless-stopped
depends_on:
- nextcloud_db
links:
- ./volumes/nextcloud/html:/var/www/html
depends_on:
- nextcloud_db
networks:
- iotstack_nw
- nextcloud_internal
environment:
- MYSQL_HOST=nextcloud_db
- MYSQL_PASSWORD=Unset
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_ROOT_PASSWORD=Unset # This line is removed during compile

nextcloud_db:
image: linuxserver/mariadb
container_name: nextcloud_db
volumes:
- Unset:/var/lib/mysql # This line 'Unset' is updated during compile
image: ghcr.io/linuxserver/mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=Unset
- MYSQL_PASSWORD=Unset
- TZ=Etc/UTC
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=Unset # removed during compile
- MYSQL_PASSWORD=Unset # removed during compile
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
restart: unless-stopped
volumes:
- ./volumes/nextcloud/db:/config
networks:
- nextcloud_internal