Compare commits
5 Commits
fb8b7b7ab5
...
main
Author | SHA1 | Date | |
---|---|---|---|
d1ec01e488 | |||
3531e31796 | |||
280bf098d0 | |||
eb89c6c725 | |||
d6a3c5c912 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
**/.env
|
**/.env
|
||||||
|
**/.docker
|
8
docker/collabora/.env.example
Normal file
8
docker/collabora/.env.example
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
######################################
|
||||||
|
# Collabora Configuration
|
||||||
|
######################################
|
||||||
|
# Ref. documentation: https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html
|
||||||
|
COLLABORA_DOMAIN=
|
||||||
|
COLLABORA_USERNAME=
|
||||||
|
COLLABORA_PASSWORD=
|
||||||
|
COLLABORA_EXTRA_PARAMS= # optional
|
18
docker/collabora/docker-compose.yml
Normal file
18
docker/collabora/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: collabora
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: collabora/code
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 9980:9980
|
||||||
|
cap_add:
|
||||||
|
- MKNOD
|
||||||
|
environment:
|
||||||
|
- domain=${COLLABORA_DOMAIN}
|
||||||
|
- username=${COLLABORA_USERNAME}
|
||||||
|
- password=${COLLABORA_PASSWORD}
|
||||||
|
- DONT_GEN_SSL_CERT="true"
|
||||||
|
- extra_params=${COLLABORA_EXTRA_PARAMS}
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
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=
|
62
docker/nextcloud/docker-compose.yml
Normal file
62
docker/nextcloud/docker-compose.yml
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
name: nextcloud
|
||||||
|
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
|
||||||
|
|
||||||
|
cron:
|
||||||
|
image: rcdailey/nextcloud-cronjob
|
||||||
|
restart: always
|
||||||
|
network_mode: none
|
||||||
|
depends_on:
|
||||||
|
- app
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- NEXTCLOUD_CONTAINER_NAME=app
|
||||||
|
- NEXTCLOUD_PROJECT_NAME=nextcloud
|
||||||
|
- NEXTCLOUD_CRON_MINUTE_INTERVAL=10
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
cache:
|
Reference in New Issue
Block a user