portainer_templates/Template/Stack/owncloud.yml

49 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-09-12 14:07:47 +02:00
---
version: "2"
services:
nextcloud:
2021-09-14 10:33:41 +02:00
image: owncloud/server:latest
2021-09-12 14:07:47 +02:00
container_name: owncloud
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=${DB_PASSWORD}
- OWNCLOUD_DB_HOST=owncloudmariadb
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- OWNCLOUD_MYSQL_UTF8MB4=true
- OWNCLOUD_REDIS_ENABLED=true
- OWNCLOUD_REDIS_HOST=owncloudredis
volumes:
2021-09-12 14:42:40 +02:00
- /portainer/Files/AppData/Config/Owncloud/data:/mnt/data
2021-09-12 14:07:47 +02:00
ports:
- ${PORT}:8080
restart: unless-stopped
depends_on:
- owncloudmariadb
- owncloudredis
owncloudmariadb:
image: mariadb:10.5
container_name: owncloudmariadb
environment:
- PUID=${PUID}
- PGID=${PGID}
2021-09-12 14:42:40 +02:00
- TZ=${TZ}
2021-09-12 14:07:47 +02:00
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=owncloud
volumes:
2021-09-14 11:14:04 +02:00
- /portainer/Files/AppData/Config/Owncloud/DB:/var/lib/mysql
2021-09-12 14:07:47 +02:00
restart: unless-stopped
2021-09-12 14:42:40 +02:00
owncloudredis:
2021-09-12 14:07:47 +02:00
image: redis:6
container_name: owncloudredis
volumes:
2021-09-14 11:14:04 +02:00
- /portainer/Files/AppData/Config/Owncloud/redis:/data
2021-09-12 14:07:47 +02:00
restart: unless-stopped