Ostatnio aktywny 5 hours ago

Rewizja 911dfb3ce6820830dd9d9672124c3a20d18c3e3c

nextcloud-compose.yml Surowy
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 healthcheck: # Prüft, ob die DB wirklich bereit ist
14 test: ["CMD-SHELL", "pg_isready -U nextcloud"]
15 interval: 10s
16 timeout: 5s
17 retries: 5
18
19 valkey:
20 image: valkey/valkey:8-alpine
21 restart: always
22 mem_limit: 2g
23 command: valkey-server --requirepass 6dfK8X6upA4LmSerMlp11YKW --appendonly yes
24 environment:
25 - REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
26 volumes:
27 - ./valkey:/data
28 networks:
29 - nextcloud-net
30
31 app:
32 container_name: nextcloud
33 image: nextcloud:32
34 restart: unless-stopped
35 mem_limit: 4g
36 ports:
37 - 8080:80
38 depends_on:
39 postgres:
40 condition: service_healthy # Wartet, bis DB wirklich bereit ist
41 valkey:
42 condition: service_started
43 volumes:
44 - ./nextcloud-data:/var/www/html
45 environment:
46 - POSTGRES_HOST=postgres
47 - POSTGRES_DB=nextcloud
48 - POSTGRES_USER=nextcloud
49 - POSTGRES_PASSWORD=XYS22mtSXE5BSP9icaPxFZqw
50
51 - REDIS_HOST=valkey
52 - REDIS_HOST_PASSWORD=6dfK8X6upA4LmSerMlp11YKW
53
54 - PHP_MEMORY_LIMIT=1024M
55 - PHP_UPLOAD_LIMIT=10G
56 networks:
57 - nextcloud-net
58
59 cron:
60 image: nextcloud:32
61 container_name: nextcloud-cron
62 restart: always
63 mem_limit: 4g
64 volumes:
65 - ./nextcloud-data:/var/www/html
66 entrypoint: /cron.sh
67 depends_on:
68 - postgres
69 - valkey
70 networks:
71 - nextcloud-net
72
73networks:
74 nextcloud-net:
75 driver: bridge