2021-08-27 08:46:13 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
nextcloud:
|
2022-01-07 12:20:29 +02:00
|
|
|
image: nextcloud:stable
|
2021-08-27 08:46:13 +02: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 12:20:29 +02:00
|
|
|
- REDIS_HOST=redis
|
2021-08-27 08:46:13 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2022-01-07 12:20:29 +02:00
|
|
|
- redis
|
2021-08-27 08:46:13 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
postgres:
|
2022-01-07 12:20:29 +02:00
|
|
|
image: postgres:14-alpine
|
2021-08-27 08:46:13 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
restart: unless-stopped
|
2022-01-07 12:20:29 +02:00
|
|
|
|
|
|
|
redis:
|
2022-08-29 12:31:08 +02:00
|
|
|
image: redis:7-alpine
|
2022-01-07 12:20:29 +02:00
|
|
|
command: --save 900 1
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
|
|
|
restart: unless-stopped
|