0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00
nextcloud-docker/stack.yml
Stephan Müller 89f5f2e681
Introduce unprivileged images for apache and fpm
Signed-off-by: Stephan Müller <mail@stephanmueller.eu>
2020-09-04 17:51:34 +02:00

40 lines
728 B
YAML

version: '3.2'
services:
db:
image: postgres
restart: always
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
app:
image: nextcloud:unprivileged
restart: always
ports:
- 8080:8080
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
depends_on:
- db
cron:
image: nextcloud:unprivileged
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
volumes:
db:
nextcloud: