0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-19 18:36:09 +02:00

Unique volume names

This commit is contained in:
Arne Tarara 2024-10-18 16:02:06 +02:00
parent 7246112480
commit 9b7fe1bfb9
No known key found for this signature in database
GPG key ID: 2540198A4079785B
3 changed files with 12 additions and 9 deletions

View file

@ -1,8 +1,8 @@
version: '2'
volumes:
nextcloud:
db:
nextcloud-data-mariadb:
nextcloud-db-mariadb:
services:
db:
@ -10,7 +10,7 @@ services:
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
- nextcloud-db-mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=TheGibson
- MYSQL_PASSWORD=TheGibson
@ -28,7 +28,7 @@ services:
links:
- db
volumes:
- nextcloud:/var/www/html
- nextcloud-data-mariadb:/var/www/html
environment:
- MYSQL_PASSWORD=TheGibson
- MYSQL_DATABASE=nextcloud

View file

@ -1,15 +1,15 @@
version: '2'
volumes:
nextcloud:
db:
nextcloud-data-postgres:
nextcloud-db-postgres:
services:
db:
image: postgres:15.3-alpine3.18
restart: always
volumes:
- db:/var/lib/postgresql/data
- nextcloud-db-postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=TheGibson
- POSTGRES_DB=nextcloud
@ -26,7 +26,7 @@ services:
links:
- db
volumes:
- nextcloud:/var/www/html
- nextcloud-data-postgres:/var/www/html
environment:
- POSTGRES_PASSWORD=TheGibson
- POSTGRES_DB=nextcloud

View file

@ -1,5 +1,8 @@
version: '2'
volumes:
nextcloud-data-sqlite:
services:
nc:
image: nextcloud:30.0.0-apache
@ -12,7 +15,7 @@ services:
environment:
SQLITE_DATABASE: owncloud2.db
volumes:
- nextcloud:/var/www/html
- nextcloud-data-sqlite:/var/www/html
healthcheck:
test: curl --fail --silent http://nc
interval: "1h" # effectively turns repeated healthchecks during runtime off