kaneo.yml
                        
                             · 1.6 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
    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
      CORS_ORIGINS: https://kaneo.mariushosting.synology.me
      ALLOW_REGISTRATION: true #or false to disable user registration after first user registration.
    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 | 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 |