Initial commit
This commit is contained in:
23
services/nextcloud/README.md
Normal file
23
services/nextcloud/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
- if needed, restart server proxy in coolify
|
||||
|
||||
- in coolify, make the database's service port publicly available (5432)
|
||||
|
||||
<!-- - in coolify, make the redis's service port publicly available (6379) -->
|
||||
|
||||
- in start page, set database to "postgres" and use credentials provided by coolify dashboard
|
||||
-- postgres host+port is likely "10.100.0.2:6379"
|
||||
```
|
||||
```
|
||||
|
||||
- in `/config/www/nextcloud/config/config.php`, add:
|
||||
```
|
||||
'overwriteprotocol' => 'https',
|
||||
'filesystem_check_changes' => 1,
|
||||
```
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
- in admin panel, configure:
|
||||
-- timezone
|
||||
<!-- -- add localhost (10.100.0.1) to whitelisted domains -->
|
||||
69
services/nextcloud/coolify.docker-compose.yml
Normal file
69
services/nextcloud/coolify.docker-compose.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
services:
|
||||
nextcloud:
|
||||
image: 'lscr.io/linuxserver/nextcloud:latest'
|
||||
environment:
|
||||
- SERVICE_URL_NEXTCLOUD_80
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- 'TZ=${TZ:-Brazil/Sao_Paulo}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- POSTGRES_HOST=nextcloud-db
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- 'NEXTCLOUD_ADMIN_USER=${SERVICE_USER_ADMIN}'
|
||||
- 'NEXTCLOUD_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN}'
|
||||
# - NEXTCLOUD_TRUSTED_DOMAINS=10.100.0.1
|
||||
# - OVERWRITEHOST=https://nextcloud.cloud.velha.casa
|
||||
- OVERWRITEPROTOCOL=https
|
||||
volumes:
|
||||
- 'nextcloud-config:/config'
|
||||
- 'nextcloud-data:/data'
|
||||
- type: bind
|
||||
source: /shared/app/nextcloud/data
|
||||
target: /data
|
||||
is_directory: true
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:80'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
nextcloud-db:
|
||||
image: 'postgres:16-alpine'
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- 'nextcloud-postgresql-data:/var/lib/postgresql/data'
|
||||
environment:
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-nextcloud}'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: 'redis:7.4-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
64
services/nextcloud/coolify.mariadb.docker-compose.yml
Normal file
64
services/nextcloud/coolify.mariadb.docker-compose.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
services:
|
||||
nextcloud:
|
||||
image: 'lscr.io/linuxserver/nextcloud:latest'
|
||||
environment:
|
||||
- SERVICE_URL_NEXTCLOUD_80
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- 'TZ=${TZ:-America/Sao_Paulo}'
|
||||
- 'MYSQL_DATABASE=${MARIADB_DATABASE:-nextcloud}'
|
||||
- 'MYSQL_USER=${SERVICE_USER_MARIADB}'
|
||||
- 'MYSQL_PASSWORD=${SERVICE_PASSWORD_MARIADB}'
|
||||
- MYSQL_HOST=nextcloud-db
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
volumes:
|
||||
- 'nextcloud-config:/config'
|
||||
- type: bind
|
||||
source: /shared/nextcloud/data
|
||||
target: /data
|
||||
is_directory: true
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:80'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
nextcloud-db:
|
||||
image: 'mariadb:11'
|
||||
volumes:
|
||||
- 'nextcloud-mariadb-data:/var/lib/mysql'
|
||||
environment:
|
||||
- 'MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT}'
|
||||
- 'MYSQL_DATABASE=${MARIADB_DATABASE:-nextcloud}'
|
||||
- 'MYSQL_USER=${SERVICE_USER_MARIADB}'
|
||||
- 'MYSQL_PASSWORD=${SERVICE_PASSWORD_MARIADB}'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- healthcheck.sh
|
||||
- '--connect'
|
||||
- '--innodb_initialized'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: 'redis:7.4-alpine'
|
||||
volumes:
|
||||
- 'nextcloud-redis-data:/data'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
Reference in New Issue
Block a user