1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/nextcloud/arm/docker-compose.yml

38 lines
773 B
YAML
Raw Normal View History

2021-08-27 06:46:13 +00:00
version: "3.8"
services:
nextcloud:
2022-01-07 10:20:29 +00:00
image: nextcloud:stable
2021-08-27 06:46:13 +00:00
ports:
- "8080:80"
volumes:
- ./data/nextcloud:/var/www/html
environment:
- POSTGRES_HOST=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
2022-01-07 10:20:29 +00:00
- REDIS_HOST=redis
2021-08-27 06:46:13 +00:00
depends_on:
- postgres
2022-01-07 10:20:29 +00:00
- redis
2021-08-27 06:46:13 +00:00
restart: unless-stopped
postgres:
2022-01-07 10:20:29 +00:00
image: postgres:14-alpine
2021-08-27 06:46:13 +00:00
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_DB=nextcloud
restart: unless-stopped
2022-01-07 10:20:29 +00:00
redis:
2022-08-29 10:31:08 +00:00
image: redis:7-alpine
2022-01-07 10:20:29 +00:00
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped