kaneo2.yml
· 1.7 KiB · YAML
Raw
services:
db:
image: postgres:17-alpine
container_name: Kaneo-DB
hostname: kaneo-db
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "kaneo", "-U", "kaneouser"]
timeout: 45s
interval: 10s
retries: 10
volumes:
- /volume1/docker/kaneodb:/var/lib/postgresql/data:rw
environment:
POSTGRES_DB: kaneo
POSTGRES_USER: kaneouser
POSTGRES_PASSWORD: kaneopass
restart: on-failure:5
kaneo:
image: ghcr.io/usekaneo/api:latest
user: 0:0
container_name: Kaneo-API
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 1337 || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
environment:
AUTH_SECRET: SgYoFDmrCjjEpfjLtlzcDfIFgDwiWAmHWBdLwYvpTeekVSbvVyXqgXiHGhrCtXfe
DATABASE_URL: postgresql://kaneouser:kaneopass@kaneo-db:5432/kaneo
KANEO_API_URL: https://apikaneo.mariushosting.synology.me
KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
CORS_ORIGINS: https://kaneo.mariushosting.synology.me
DISABLE_REGISTRATION: false
ports:
- 1337:1337
depends_on:
- db
restart: on-failure:5
frontend:
image: ghcr.io/usekaneo/web:latest
user: 0:0
container_name: Kaneo
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 5173 || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
environment:
KANEO_API_URL: https://apikaneo.mariushosting.synology.me
KANEO_CLIENT_URL: https://kaneo.mariushosting.synology.me
ports:
- 5173:5173
depends_on:
- kaneo
restart: on-failure:5
| 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 |