最后活跃于 5 hours ago

修订 52be7057952ea30ca7fb8207884665fe35ece635

nextcloud-compose.yml 原始文件
1services:
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 volumes:
22 - ./valkey:/data
23 networks:
24 - nextcloud-net
25
26 app:
27 container_name: nextcloud
28 image: nextcloud:32
29 restart: unless-stopped
30 mem_limit: 4g
31 ports:
32 - 8080:80
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
63networks:
64 nextcloud-net: