chore: switch to caddy for fpm and postgres 16

This commit is contained in:
2026-01-23 10:49:01 +00:00
parent ccf388d047
commit c32e240d2e
12 changed files with 81 additions and 250 deletions

View File

@@ -1,7 +1,8 @@
services:
db:
image: postgres:13.1
nextcloud-db:
image: postgres:16.11-alpine
container_name: nextcloud-db
command: ["postgres", "-c", "shared_buffers=512MB", "-c", "work_mem=16MB"]
restart: always
volumes:
- db:/var/lib/postgresql/data
@@ -10,19 +11,19 @@ services:
networks:
- nextcloud
redis:
image: redis:alpine
nextcloud-redis:
image: redis:8.4.0-alpine
container_name: nextcloud-redis
restart: always
networks:
- nextcloud
app:
image: nextcloud:fpm-alpine
nextcloud-app:
image: nextcloud:32.0.5-fpm-alpine
container_name: nextcloud-app
depends_on:
- db
- redis
- nextcloud-db
- nextcloud-redis
restart: always
volumes:
- nextcloud:/var/www/html
@@ -37,44 +38,29 @@ services:
networks:
- nextcloud
web:
image: nginx:alpine
nextcloud-web:
image: caddy:2.10.2-alpine
container_name: nextcloud-web
depends_on:
- app
restart: always
volumes_from:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
env_file:
- web.env
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- nextcloud:/var/www/html:ro
- ./app/custom_apps:/var/www/html/custom_apps:ro
depends_on:
- nextcloud-app
networks:
- nextcloud
- reverse-proxy
# web:
# image: caddy:alpine
# container_name: nextcloud-web
# restart: always
# volumes:
# - nextcloud:/var/www/html:z,ro
# - ./Caddyfile:/etc/caddy/Caddyfile:ro
# depends_on:
# - app
# networks:
# - nextcloud
# - reverse-proxy
cron:
image: nextcloud:fpm-alpine
nextcloud-cron:
image: nextcloud:32.0.5-fpm-alpine
container_name: nextcloud-cron
depends_on:
- app
- nextcloud-app
restart: always
entrypoint: /cron.sh
volumes_from:
- app
- nextcloud-app
networks:
- nextcloud