hi i am first time trying to setup casdoor, so i have a question,
origin = "https://door.casdoor.com" << shoudl i put here my domain name ?
staticBaseUrl = "https://cdn.casbin.org" << and here what?
anyone having minimal docker-compose ?
hi i am first time trying to setup casdoor, so i have a question,
origin = "https://door.casdoor.com" << shoudl i put here my domain name ?
staticBaseUrl = "https://cdn.casbin.org" << and here what?
anyone having minimal docker-compose ?
driverName = postgres
dataSourceName = "user=**** password=*** host=localhost port=5432 sslmode=disable dbname=casdoor"
am getting panic: dial tcp [::1]:5432: connect: connection refused, on server with pgcli and same password port ip i can connect
version: '3.8'
services:
my_service:
image: casbin/casdoor
ports:
- "8000:8000"
volumes:
- "./conf:/conf"
my docker compose file, next to it i have a conf folder that has app.conf << it should read dbsource form there
i created db manualy like it says in guide
+-----------+-------+----------+------------+------------+-------------------+
| Name | Owner | Encoding | Collate | Ctype | Access privileges |
|-----------+-------+----------+------------+------------+-------------------|
| casdoor | ** | UTF8 | en_US.utf8 | en_US.utf8 | <null> |
| ** | ** | UTF8 | en_US.utf8 | en_US.utf8 | <null> |
| postgres | ** | UTF8 | en_US.utf8 | en_US.utf8 | <null> |
this is frustrating a a lot
will try sqllite3 i guess xD
hmm ok i am for sure propery passing conf cuz when i change port it changes too, just dont get why my casdoor form docker wont target postgresql
figured it out it was docker issue
i head to put them in same network but now when i run casdoor in docker and do wget 127.0.0.1:8000 i just get connection refued
hmm sudo lsof -i :8000 gives me nothing like casdoor did not bind to a prot at all while postgresql port gives me its bind
wtf i think casdoor just colsed with no error
[+] Running 1/1
✔ Container casdoor-my_service-1 Started 0.5s
******:~/docker/casdoor$ docker container ls
and it just shutdowns
guess will need to see logs somehow
panic: dial tcp 127.0.0.1:5432: connect: connection refused <<<<< from logs wtf
guess sqlite3 it is
lol even sqllite has to f me panic: unable to open database file: out of memory (14)
i have 300mb used of 6gb
solved it dumb docker it goes by hostname
panic: pq: password authentication failed for user "casdoor"
wtf but i did not put user=casdor i put user=somethingelse
ok i think i solve it " vs '
Sign up to reply, like and follow topics.
Want to read more? Browse other topics in Casdoor or view latest topics.