nextcloud-compose.yml
· 1.3 KiB · YAML
Originalformat
services:
postgres:
image: postgres:17-alpine
restart: always
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=XYS22mtSXE5BSP9icaPxFZqw
networks:
- nextcloud-net
valkey:
image: valkey/valkey:latest
restart: always
mem_limit: 2g
environment:
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
- REDIS_PASSWORD=6dfK8X6upA4LmSerMlp11YKW
# ports:
# - 6379:6379
volumes:
- ./valkey:/data
networks:
- nextcloud-net
app:
container_name: nextcloud
image: nextcloud:32
restart: unless-stopped
mem_limit: 4g
volumes:
- ./nextcloud-data:/var/www/html
environment:
- POSTGRES_HOST=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=XYS22mtSXE5BSP9icaPxFZqw
- REDIS_HOST=valkey
- REDIS_HOST_PASSWORD=6dfK8X6upA4LmSerMlp11YKW
networks:
- nextcloud-net
depends_on:
- postgres
- valkey
cron:
image: nextcloud:32
container_name: nextcloud-cron
restart: always
mem_limit: 4g
volumes:
- ./nextcloud-data:/var/www/html
entrypoint: /cron.sh
depends_on:
- postgres
- valkey
networks:
- nextcloud-net
networks:
nextcloud-net:
| 1 | services: |
| 2 | postgres: |
| 3 | image: postgres:17-alpine |
| 4 | restart: always |
| 5 | volumes: |
| 6 | - ./postgres:/var/lib/postgresql/data |
| 7 | environment: |
| 8 | - POSTGRES_DB=nextcloud |
| 9 | - POSTGRES_USER=nextcloud |
| 10 | - POSTGRES_PASSWORD=XYS22mtSXE5BSP9icaPxFZqw |
| 11 | networks: |
| 12 | - nextcloud-net |
| 13 | |
| 14 | valkey: |
| 15 | image: valkey/valkey:latest |
| 16 | restart: always |
| 17 | mem_limit: 2g |
| 18 | environment: |
| 19 | - REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL |
| 20 | - REDIS_PASSWORD=6dfK8X6upA4LmSerMlp11YKW |
| 21 | # ports: |
| 22 | # - 6379:6379 |
| 23 | volumes: |
| 24 | - ./valkey:/data |
| 25 | networks: |
| 26 | - nextcloud-net |
| 27 | |
| 28 | app: |
| 29 | container_name: nextcloud |
| 30 | image: nextcloud:32 |
| 31 | restart: unless-stopped |
| 32 | mem_limit: 4g |
| 33 | volumes: |
| 34 | - ./nextcloud-data:/var/www/html |
| 35 | environment: |
| 36 | - POSTGRES_HOST=postgres |
| 37 | - POSTGRES_DB=nextcloud |
| 38 | - POSTGRES_USER=nextcloud |
| 39 | - POSTGRES_PASSWORD=XYS22mtSXE5BSP9icaPxFZqw |
| 40 | |
| 41 | - REDIS_HOST=valkey |
| 42 | - REDIS_HOST_PASSWORD=6dfK8X6upA4LmSerMlp11YKW |
| 43 | networks: |
| 44 | - nextcloud-net |
| 45 | depends_on: |
| 46 | - postgres |
| 47 | - valkey |
| 48 | |
| 49 | cron: |
| 50 | image: nextcloud:32 |
| 51 | container_name: nextcloud-cron |
| 52 | restart: always |
| 53 | mem_limit: 4g |
| 54 | volumes: |
| 55 | - ./nextcloud-data:/var/www/html |
| 56 | entrypoint: /cron.sh |
| 57 | depends_on: |
| 58 | - postgres |
| 59 | - valkey |
| 60 | networks: |
| 61 | - nextcloud-net |
| 62 | |
| 63 | networks: |
| 64 | nextcloud-net: |