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 #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 environment: - MYSQL_ROOT_PASSWORD=TheGibson - MYSQL_PASSWORD=TheGibson - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud app: image: nextcloud:29.0.5-apache #build: # The build takes currently ~ 30 minutes which is far too long for daily testing # context: ../29/fpm # dockerfile: Dockerfile restart: always links: - db #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 environment: - MYSQL_PASSWORD=TheGibson - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud - MYSQL_HOST=db healthcheck: test: curl --fail --silent http://nc interval: "1h" # effectively turns repeated healthchecks during runtime off start_period: "60s" start_interval: "1s" nc: image: nginx:1.25.1-alpine3.17 restart: always ports: - 8080:80 links: - app volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - app