Intial repository commit
This commit is contained in:
28
nextcloud/.gitignore
vendored
Normal file
28
nextcloud/.gitignore
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# Ignore environment file that contains sensitive information
|
||||
.env
|
||||
|
||||
# Ignore any log files that may be generated by services
|
||||
*.log
|
||||
|
||||
# Ignore temporary or backup files that might be created by editors
|
||||
*.bak
|
||||
*.swp
|
||||
|
||||
# Ignore docker-compose override files (local configurations, not meant to be versioned)
|
||||
docker-compose.override.yml
|
||||
|
||||
# Ignore any database files that are mapped as volumes (persistent data)
|
||||
db/
|
||||
redis/
|
||||
nc_app/
|
||||
|
||||
# Ignore any tmp or pid files that might be created during runtime
|
||||
tmp/
|
||||
*.pid
|
||||
|
||||
# Ignore any SQLite database files (if applicable)
|
||||
*.sqlite
|
||||
|
||||
# Ignore any generated Nextcloud data files (if they're stored here instead of in volumes)
|
||||
*.db
|
||||
|
||||
41
nextcloud/README.md
Normal file
41
nextcloud/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# Nextcloud Info
|
||||
|
||||
## Instructions:
|
||||
- Tusted Domains: If you need to add a trusted domain, do so in nc_app/config/config.php
|
||||
- Access Nextcloud on port 8080
|
||||
|
||||
## Contents:
|
||||
**`nextcloud`**
|
||||
├── **`db/`**
|
||||
├── **`docker-compose.yml`**
|
||||
├── **`.env`**
|
||||
├── **`.gitignore`**
|
||||
├── **`nc_app/`**
|
||||
├── **`README.md`**
|
||||
└── **`redis/`**
|
||||
|
||||
## File Descrptions:
|
||||
- **`db/`**: Database storage folder
|
||||
- **`docker-compose.yml`**: Docker compose file
|
||||
- **`.env`**: Environment Variables
|
||||
- **`.gitignore`**: Git ignore file
|
||||
- **`nc_app/`**: Nextcloud storage folder
|
||||
- **`README.md`**: Documentation
|
||||
- **`redis/`**: Database storage folder
|
||||
|
||||
## Environmet Variables:
|
||||
- **`MYSQL_ROOT_PASSWORD`**: Database root password
|
||||
- **`MYSQL_PASSWORD`**: Database admin password
|
||||
- **`MYSQL_DATABASE`**: Database name
|
||||
- **`MYSQL_USER`**: Database admin username
|
||||
- **`OVERWRITECLIURL`**: Overwrite URL
|
||||
- **`OVERWRITEWEBROOT`**: Overwrite path
|
||||
- **`OVERWRITEHOST`**: Overwrite hostname
|
||||
|
||||
|
||||
## Ignored Files:
|
||||
- **`db/`**: Persistant Data
|
||||
- **`.env`**: Environment Variables
|
||||
- **`nc_app/`**: Persistant Data
|
||||
- **`redis/`**: Persistant Data
|
||||
|
||||
49
nextcloud/compose_old.yml
Normal file
49
nextcloud/compose_old.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11
|
||||
restart: unless-stopped
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/db:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/redis:/data
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- 'homelab'
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/nc_app:/var/www/html
|
||||
environment:
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_HOST=db
|
||||
- REDIS_HOST=redis
|
||||
- NEXTCLOUD_TRUSTED_DOMAINS=szumko.net
|
||||
- OVERWRITECLIURL=https://szumko.net/cloud
|
||||
- OVERWRITEWEBROOT=/cloud
|
||||
- TRUSTED_PROXIES=nginx-proxy-manager,cloudflared
|
||||
- OVERWRITEHOST=szumko.net
|
||||
- OVERWRITEPROTOCOL=https
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
47
nextcloud/docker-compose.yml
Normal file
47
nextcloud/docker-compose.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11
|
||||
restart: unless-stopped
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/db:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/redis:/data
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- 'homelab'
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- /home/szumkoal/docker/nextcloud/nc_app:/var/www/html
|
||||
environment:
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_HOST=db
|
||||
- REDIS_HOST=redis
|
||||
- OVERWRITECLIURL=${OVERWRITECLIURL}
|
||||
- OVERWRITEWEBROOT=${OVERWRITEWEBROOT}
|
||||
- OVERWRITEHOST=${OVERWRITEHOST}
|
||||
- OVERWRITEPROTOCOL=https
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
Reference in New Issue
Block a user