最后活跃于 1761658875

mariushosting 修订了这个 Gist 1761658875. 转到此修订

1 file changed, 61 insertions

kaneo2.yml(文件已创建)

@@ -0,0 +1,61 @@
1 + services:
2 + db:
3 + image: postgres:17-alpine
4 + container_name: Kaneo-DB
5 + hostname: kaneo-db
6 + security_opt:
7 + - no-new-privileges:true
8 + healthcheck:
9 + test: ["CMD", "pg_isready", "-q", "-d", "kaneo", "-U", "kaneouser"]
10 + timeout: 45s
11 + interval: 10s
12 + retries: 10
13 + volumes:
14 + - /volume1/docker/kaneodb:/var/lib/postgresql/data:rw
15 + environment:
16 + POSTGRES_DB: kaneo
17 + POSTGRES_USER: kaneouser
18 + POSTGRES_PASSWORD: kaneopass
19 + restart: on-failure:5
20 +
21 + kaneo:
22 + image: ghcr.io/usekaneo/api:latest
23 + user: 0:0
24 + container_name: Kaneo-API
25 + healthcheck:
26 + test: ["CMD-SHELL", "nc -z 127.0.0.1 1337 || exit 1"]
27 + interval: 10s
28 + timeout: 5s
29 + retries: 3
30 + start_period: 90s
31 + environment:
32 + AUTH_SECRET: SgYoFDmrCjjEpfjLtlzcDfIFgDwiWAmHWBdLwYvpTeekVSbvVyXqgXiHGhrCtXfe
33 + DATABASE_URL: postgresql://kaneouser:kaneopass@kaneo-db:5432/kaneo
34 + KANEO_API_URL: https://apikaneo.mariushosting.synology.me
35 + KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
36 + CORS_ORIGINS: https://kaneo.mariushosting.synology.me
37 + DISABLE_REGISTRATION: false
38 + ports:
39 + - 1337:1337
40 + depends_on:
41 + - db
42 + restart: on-failure:5
43 +
44 + frontend:
45 + image: ghcr.io/usekaneo/web:latest
46 + user: 0:0
47 + container_name: Kaneo
48 + healthcheck:
49 + test: ["CMD-SHELL", "nc -z 127.0.0.1 5173 || exit 1"]
50 + interval: 10s
51 + timeout: 5s
52 + retries: 3
53 + start_period: 90s
54 + environment:
55 + KANEO_API_URL: https://apikaneo.mariushosting.synology.me
56 + KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
57 + ports:
58 + - 5173:5173
59 + depends_on:
60 + - kaneo
61 + restart: on-failure:5
上一页 下一页