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

View file

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

View file

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