1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/nextcloud/arm/docker-compose.yml
2022-08-29 18:31:08 +08:00

38 lines
773 B
YAML

version: "3.8"
services:
nextcloud:
image: nextcloud:stable
ports:
- "8080:80"
volumes:
- ./data/nextcloud:/var/www/html
environment:
- POSTGRES_HOST=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- REDIS_HOST=redis
depends_on:
- postgres
- redis
restart: unless-stopped
postgres:
image: postgres:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_DB=nextcloud
restart: unless-stopped
redis:
image: redis:7-alpine
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped