alireza0 / s-ui

An advanced Web Panel • Built for SagerNet/Sing-Box
https://t.me/XrayUI
GNU General Public License v3.0
2.11k stars 304 forks source link

2024/06/22 17:41:11 no such table: changes #171

Closed megoRU closed 5 days ago

megoRU commented 1 week ago

I just started it but: lireza7/s-ui "./sui migrate" 10 minutes ago Restarting (1) 46 seconds ago s-ui

services:
  s-ui:
    image: alireza7/s-ui
    container_name: s-ui
    hostname: "S-UI docker"
    volumes:
      - "singbox:/app/bin"
      - "$PWD/db:/app/db"
      - "$PWD/cert:/app/cert"
    environment:
      SINGBOX_API: "sing-box:1080"
      SUI_DB_FOLDER: "db"
    tty: true
    restart: unless-stopped
    ports:
      - "2095:2095"
      - "2096:2096"
    networks:
      - s-ui
    entrypoint: "./sui migrate && ./sui"

  sing-box:
    image: alireza7/s-ui-singbox
    container_name: sing-box
    volumes:
      - "singbox:/app/"
      - "$PWD/cert:/cert"
    networks:
      - s-ui
    ports:
      - "443:443"
      - "1443:1443"
      - "2443:2443"
      - "3443:3443"
    restart: unless-stopped
    depends_on:
      - s-ui

networks:
  s-ui:
    driver: bridge

volumes:
  singbox:
alireza0 commented 1 week ago

You are right. I will fix it in next release. For now, just run it in first time with:

entrypoint: "./sui"

And then stop it and convert it to:

entrypoint: "./sui migrate && ./sui"

Then it will be ready for next versions changes.

Please keep this in your mind that always check for update of docker-compose.yml file from repo.

alireza0 commented 5 days ago

It is now fixed generally for first install