mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
39 lines
919 B
YAML
39 lines
919 B
YAML
version: '2'
|
|
|
|
volumes:
|
|
nextcloud:
|
|
db:
|
|
|
|
services:
|
|
db:
|
|
image: postgres:15.3-alpine3.18
|
|
restart: always
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=TheGibson
|
|
- POSTGRES_DB=nextcloud
|
|
- POSTGRES_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:/var/www/html
|
|
environment:
|
|
- POSTGRES_PASSWORD=TheGibson
|
|
- POSTGRES_DB=nextcloud
|
|
- POSTGRES_USER=nextcloud
|
|
- POSTGRES_HOST=db
|
|
healthcheck:
|
|
test: curl --fail --silent http://nc
|
|
interval: "1h" # effectively turns repeated healthchecks during runtime off
|
|
start_period: "60s"
|
|
start_interval: "1s"
|