add nextcloud config
This commit is contained in:
parent
d6a3c5c912
commit
eb89c6c725
35
docker/nextcloud/.env.example
Normal file
35
docker/nextcloud/.env.example
Normal file
@ -0,0 +1,35 @@
|
||||
######################################
|
||||
# Postgres Configuration
|
||||
######################################
|
||||
POSTGRES_HOST=db
|
||||
POSTGRES_DB=nextcloud
|
||||
POSTGRES_USER=nextcloud
|
||||
POSTGRES_PASSWORD=
|
||||
POSTGRES_VOLUME_PATH= # Path to store postgres data
|
||||
|
||||
######################################
|
||||
# Nextcloud Configuration
|
||||
######################################
|
||||
NEXTCLOUD_VOLUME_PATH= # Path to store nextcloud data
|
||||
|
||||
# I have provided these with the default values, however I recommend increasing these as needed
|
||||
PHP_MEMORY_LIMIT=512M
|
||||
PHP_UPLOAD_LIMIT=512M
|
||||
|
||||
# For SMTP - I use private email: https://www.namecheap.com/support/knowledgebase/article.aspx/1179/2175/general-private-email-configuration-for-mail-clients-and-mobile-devices/
|
||||
# Note: At least SMTP_HOST, MAIL_FROM_ADDRESS and MAIL_DOMAIN must be set for the configurations to be applied.
|
||||
SMPT_HOST=
|
||||
SMPT_SECURE=ssl
|
||||
SMTP_PORT=
|
||||
SMTP_AUTHTYPE=LOGIN
|
||||
SMTP_NAME= # username
|
||||
SMTP_PASSWORD=
|
||||
MAIL_FROM_ADDRESS=
|
||||
MAIL_DOMAIN=
|
||||
|
||||
######################################
|
||||
# Redis Configuration
|
||||
######################################
|
||||
REDIS_HOST=cache
|
||||
REDIS_HOST_PORT=6379
|
||||
REDIS_HOST_PASSWORD=
|
47
docker/nextcloud/docker-compose.yml
Normal file
47
docker/nextcloud/docker-compose.yml
Normal file
@ -0,0 +1,47 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
restart: always
|
||||
volumes:
|
||||
- ${POSTGRES_VOLUME_PATH}:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
|
||||
cache:
|
||||
image: redis:7.2.5-alpine
|
||||
restart: always
|
||||
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_HOST_PASSWORD}
|
||||
volumes:
|
||||
- cache:/data
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- ${NEXTCLOUD_VOLUME_PATH}:/var/www/html
|
||||
environment:
|
||||
- POSTGRES_HOST
|
||||
- POSTGRES_DB
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- PHP_MEMORY_LIMIT
|
||||
- PHP_UPLOAD_LIMIT
|
||||
- SMTP_HOST
|
||||
- SMTP_AUTHTYPE
|
||||
- SMTP_NAME
|
||||
- SMTP_PASSWORD
|
||||
- MAIL_FROM_ADDRESS
|
||||
- MAIL_DOMAIN
|
||||
- REDIS_HOST
|
||||
- REDIS_HOST_PORT
|
||||
- REDIS_HOST_PASSWORD
|
||||
depends_on:
|
||||
- db
|
||||
- cache
|
||||
|
||||
volumes:
|
||||
cache:
|
Loading…
x
Reference in New Issue
Block a user