This commit is contained in:
Braden Jageman 2024-04-16 23:03:11 -04:00
parent 15a6819256
commit 04b84225c0
2 changed files with 13 additions and 36 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.env
config/
nextcloud

View File

@ -244,47 +244,23 @@ services:
volumes:
- db-home:/var/lib/mysql
#Nextcloud
nc-db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- nc-db:/var/lib/mysql
env_file:
- ./nextcloud/db.env
nc-redis:
image: redis
restart: always
nc-app:
build: ./nextcloud/app
restart: always
ports:
- 5234:80
volumes:
- nextcloud:/var/www/html
- /media/storage/Cloud/Nextcloud:/storage
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- NEXTCLOUD_DATA_DIR=/storage
- MYSQL_HOST=nc-db
- VIRTUAL_HOST=cloud.${DOMAIN}
env_file:
- ./nextcloud/db.env
depends_on:
- nc-db
- nc-redis
cron:
build: ./nextcloud/app
restart: always
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- VIRTUAL_HOST=nextcloud.${DOMAIN}
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- nc-db
- nc-redis
- ./config/nextcloud:/config
- ./nextcloud:/data
ports:
- 443:443
restart: unless-stopped
volumes:
nc-db:
nextcloud:
wordpress-home:
db-home:
wordpress-botc: