0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-18 12:25:09 +01:00
nextcloud-docker/energy-tests/compose-postgres.yml

35 lines
904 B
YAML
Raw Normal View History

version: '2'
volumes:
nextcloud:
db:
services:
db:
image: postgres:15.3-alpine3.18
restart: always
#volumes:
# - db:/var/lib/postgresql/data:Z # This is the usual way of starting this service in a container, but we do not need persistent data storage for benchmarking
environment:
- POSTGRES_PASSWORD=TheGibson
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
nc:
2023-12-15 07:55:22 +01:00
image: nextcloud:28.0.0-apache
restart: always
ports:
- 8080:80
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:
- POSTGRES_PASSWORD=TheGibson
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_HOST=db
healthcheck:
test: ["curl", "-f", "http://nc"]
interval: "1s"