Last active 1762196324

kaneonew.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 container_name: Kaneo-API
24 healthcheck:
25 test: ["CMD-SHELL", "nc -z 127.0.0.1 1337 || exit 1"]
26 interval: 10s
27 timeout: 5s
28 retries: 3
29 start_period: 90s
30 environment:
31 CORS_ORIGINS: https://kaneo.mariushosting.synology.me
32 KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
33 AUTH_SECRET: SgYoFDmrCjjEpfjLtlzcDfIFgDwiWAmHWBdLwYvpTeekVSbvVyXqgXiHGhrCtXfe
34 DATABASE_URL: postgresql://kaneouser:kaneopass@kaneo-db:5432/kaneo
35 ports:
36 - 1337:1337
37 depends_on:
38 - db
39 restart: on-failure:5
40
41 frontend:
42 image: ghcr.io/usekaneo/web:latest
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 ALLOW_REGISTRATION: true #or false to disable user registration after first user registration.
53 ports:
54 - 5173:5173
55 depends_on:
56 - kaneo
57 restart: on-failure:5