0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-20 18:56:09 +02:00
nextcloud-docker/energy-tests/compose-mariadb.yml
2024-11-18 20:34:29 +01:00

54 lines
No EOL
1.6 KiB
YAML

volumes:
nextcloud-data-mariadb:
nextcloud-db-mariadb:
services:
db:
image: mariadb:11.0.2-jammy
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- nextcloud-db-mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=TheGibson
- MYSQL_PASSWORD=TheGibson
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nc:
image: nextcloud:30.0.0-apache
#build: # The build takes currently ~ 30 minutes which is far too long for daily testing
# context: ../29/fpm
# dockerfile: Dockerfile
restart: always
ports:
- 8080:80
links:
- db
volumes:
- nextcloud-data-mariadb:/var/www/html
environment:
- MYSQL_PASSWORD=TheGibson
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=ncs
- TRUSTED_PROXIES=ncs
- APACHE_DISABLE_REWRITE_IP=1
- OVERWRITEPROTOCOL=https
healthcheck:
test: curl --fail --silent -k https://ncs
interval: "1h" # effectively turns repeated healthchecks during runtime off
start_period: "60s"
start_interval: "1s"
# We use the official way of doing things
# https://github.com/docker-library/docs/blob/master/nextcloud/README.md#https---ssl-encryption
ncs:
image: nginx
ports:
- "443:443"
volumes:
- ./nginx-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx-proxy/cert.crt:/etc/ssl/certs/cert.crt:ro
- ./nginx-proxy/cert.key:/etc/ssl/private/cert.key:ro