2023-07-17 13:28:28 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
nextcloud:
|
|
|
|
db:
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb:11.0.2-jammy
|
|
|
|
restart: always
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
2023-12-30 13:47:48 +01:00
|
|
|
#volumes:
|
|
|
|
# - db:/var/lib/mysql # This is the usual way of starting this service in a container, but we do not need persistent data storage for benchmarking
|
2023-07-17 13:28:28 +02:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=TheGibson
|
|
|
|
- MYSQL_PASSWORD=TheGibson
|
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
|
|
- MYSQL_USER=nextcloud
|
|
|
|
|
|
|
|
nc:
|
2024-02-07 16:16:46 +01:00
|
|
|
image: nextcloud:28.0.2-apache
|
2023-07-17 13:28:28 +02:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
links:
|
|
|
|
- db
|
2023-12-30 13:47:48 +01:00
|
|
|
#volumes:
|
|
|
|
# - nextcloud:/var/www/html # This is the usual way of using nextcloud in a container, but we do not need persistent data storage for benchmarking
|
2023-07-17 13:28:28 +02:00
|
|
|
environment:
|
|
|
|
- MYSQL_PASSWORD=TheGibson
|
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
|
|
- MYSQL_USER=nextcloud
|
|
|
|
- MYSQL_HOST=db
|
2024-01-01 09:52:13 +01:00
|
|
|
# healthcheck:
|
|
|
|
# test: curl -f http://nc
|
|
|
|
# interval: "1h" # effectively turns repeated healthchecks during runtime off
|
|
|
|
# start-period: "1s" # Not yet supported. Will come with Docker CE 25.0
|
|
|
|
# start-interval: "1s" # Not yet supported. Will come with Docker CE 25.0
|