Jambotron one-click template
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# Nextcloud — your own cloud: files, calendar, contacts and sharing, a self-hosted alternative to Google Drive.
|
||||
# On Jambotron: deploy → domain on the nextcloud service, port 80 → log in as admin with NEXTCLOUD_ADMIN_PASSWORD
|
||||
# (project variable). NEXTCLOUD_DB_PASSWORD and NEXTCLOUD_ADMIN_PASSWORD: one-click deploy generates them.
|
||||
services:
|
||||
nextcloud-db:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: nextcloud
|
||||
POSTGRES_USER: nextcloud
|
||||
POSTGRES_PASSWORD: ${NEXTCLOUD_DB_PASSWORD:?set NEXTCLOUD_DB_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U nextcloud -d nextcloud"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
mem_limit: 256m
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:stable-apache
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
nextcloud-db:
|
||||
condition: service_healthy
|
||||
expose:
|
||||
- "80"
|
||||
environment:
|
||||
POSTGRES_HOST: nextcloud-db
|
||||
POSTGRES_DB: nextcloud
|
||||
POSTGRES_USER: nextcloud
|
||||
POSTGRES_PASSWORD: ${NEXTCLOUD_DB_PASSWORD}
|
||||
NEXTCLOUD_ADMIN_USER: admin
|
||||
NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD:?set NEXTCLOUD_ADMIN_PASSWORD}
|
||||
# Jambotron gives the project an HTTPS subdomain: trust any of them and build https links behind the proxy
|
||||
NEXTCLOUD_TRUSTED_DOMAINS: "*.jambocheck.com *.staging.jambocheck.com ${NEXTCLOUD_DOMAIN:-}"
|
||||
TRUSTED_PROXIES: "10.0.0.0/8 172.16.0.0/12 192.168.0.0/16"
|
||||
OVERWRITEPROTOCOL: https
|
||||
PHP_MEMORY_LIMIT: 512M
|
||||
volumes:
|
||||
- nextcloud_data:/var/www/html
|
||||
mem_limit: 640m
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
nextcloud_data:
|
||||
Reference in New Issue
Block a user