Use alpine, add collabora, tune php uploads, bump database version
This commit is contained in:
parent
2107687a11
commit
03c2fb46cf
8 changed files with 47 additions and 51 deletions
|
|
@ -16,14 +16,19 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- nc-data:/var/www/html
|
||||
- ./config/nc:/var/www/html/config:rw
|
||||
- type: tmpfs
|
||||
target: /tmp:exec
|
||||
environment:
|
||||
- TRUSTED_PROXIES=172.16.0.0/12 192.168.0.0/16 10.0.0.0/8 fc00::/7 fe80::/10 2001:db8::/32
|
||||
- TRUSTED_DOMAINS=palta.cyou,bard.palta.cyou
|
||||
- NEXTCLOUD_TRUSTED_DOMAINS=palta.cyou
|
||||
- OVERWRITEPROTOCOL=https
|
||||
|
||||
- OVERWRITECLIURL=https://palta.cyou
|
||||
# - VIRTUAL_PROTO=fastcgi
|
||||
# - VIRTUAL_ROOT=xxx
|
||||
- POSTGRES_HOST=db
|
||||
- REDIS_HOST=redis
|
||||
- PHP_MEMORY_LIMIT=3G
|
||||
- PHP_UPLOAD_LIMIT=3G
|
||||
env_file:
|
||||
- db.env
|
||||
- nc_config.env
|
||||
|
|
@ -34,11 +39,13 @@ services:
|
|||
- redis
|
||||
|
||||
# janitor
|
||||
nextcloud-janitor:
|
||||
janitor:
|
||||
build: ./images/nc
|
||||
restart: always
|
||||
volumes_from:
|
||||
- nextcloud:rw
|
||||
volumes:
|
||||
- nc-data:/var/www/html
|
||||
- type: tmpfs
|
||||
target: /tmp:exec
|
||||
entrypoint: /cron.sh
|
||||
networks:
|
||||
- nextcloud
|
||||
|
|
@ -47,16 +54,14 @@ services:
|
|||
- redis
|
||||
|
||||
# Frontend php proxy
|
||||
nextcloud-front:
|
||||
front:
|
||||
build: ./images/ngx
|
||||
restart: always
|
||||
environment:
|
||||
- VIRTUAL_HOST=palta.cyou
|
||||
- LETSENCRYPT_HOST=palta.cyou
|
||||
|
||||
volumes:
|
||||
- nc-data:/var/www/html:ro
|
||||
|
||||
depends_on:
|
||||
- nextcloud
|
||||
networks:
|
||||
|
|
@ -64,10 +69,8 @@ services:
|
|||
- reverse_proxy-tier
|
||||
# db
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
image: postgres:17-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
env_file:
|
||||
|
|
@ -75,9 +78,29 @@ services:
|
|||
shm_size: 512MB
|
||||
networks:
|
||||
- nextcloud
|
||||
|
||||
# redis
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
networks:
|
||||
- nextcloud
|
||||
|
||||
# Collabora CODE
|
||||
collabora:
|
||||
image: collabora/code
|
||||
restart: always
|
||||
privileged: true
|
||||
hostname: collabora.palta.cyou
|
||||
environment:
|
||||
- VIRTUAL_HOST=collabora.palta.cyou
|
||||
- VIRTUAL_PORT=9980
|
||||
- VIRTUAL_PROTO=https
|
||||
- LETSENCRYPT_HOST=collabora.palta.cyou
|
||||
- server_name=collabora.palta.cyou
|
||||
- aliasgroup1=https://palta.cyou
|
||||
networks:
|
||||
- reverse_proxy-tier
|
||||
- nextcloud
|
||||
volumes:
|
||||
- type: tmpfs
|
||||
target: /tmp:exec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue