Last active 1761658318

kaneo.yml Raw
1services:
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 ports:
35 - 1337:1337
36 depends_on:
37 - db
38 restart: on-failure:5
39
40 frontend:
41 image: ghcr.io/usekaneo/web:latest
42 user: 0:0
43 container_name: Kaneo
44 healthcheck:
45 test: ["CMD-SHELL", "nc -z 127.0.0.1 5173 || exit 1"]
46 interval: 10s
47 timeout: 5s
48 retries: 3
49 start_period: 90s
50 environment:
51 KANEO_API_URL: https://apikaneo.mariushosting.synology.me
52 KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
53 CORS_ORIGINS: https://kaneo.mariushosting.synology.me
54 ALLOW_REGISTRATION: true #or false to disable user registration after first user registration.
55 ports:
56 - 5173:5173
57 depends_on:
58 - kaneo
59 restart: on-failure:5