hi all,
so i got one step further and my docker setup is serving my trac instance now but it doesnt really solve the underlaying problem :(
so what i did is
- figure out the ip of the container
- changed my uri string in traci.ini so it uses the ip and not the docker container name
at this point my data started to get loaded but as i said this doesnt solve the problem, i want to be able to use a hostname for obvious reasons.
So how do i make trac aware that it needs to resolve my container name correctly? I mean for my simply testscript its not a problem but trac cant do it,
i hope we get something to work here.
here is my simply script that works just as expected ...
import psycopg2
conn = psycopg2.connect(
"postgres://dbuser:dbpassword@trac-postgresql:5432/trac_db"
)
cur = conn.cursor()
cur.execute("SELECT * FROM ticket;")
rows = cur.fetchall()
for row in rows:
print(row)
cheers
MArkus