Using strict image versions in docker-compose.

This commit is contained in:
2025-08-31 14:25:57 -07:00
parent 1b027cfa39
commit 7cdccea6d8
3 changed files with 4 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ secrets:
services:
db:
image: postgres
image: postgres:17.6-trixie
env_file:
- ./nextcloud/nextcloud.env
shm_size: 128mb
@@ -40,7 +40,7 @@ services:
- postgres_password
- postgres_user
redis:
image: redis
image: redis:8.2.1-bookworm
env_file:
- ./nextcloud/nextcloud.env
command: bash -c 'redis-server --requirepass "$$(cat /run/secrets/redis_password)"'
@@ -56,7 +56,7 @@ services:
networks:
- internal
nextcloud:
image: nextcloud
image: nextcloud:31.0.8-apache
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud