cusdis icon indicating copy to clipboard operation
cusdis copied to clipboard

When directly building with dockerfile, the general report cannot connect to the database. I don't know why. Please help me see, or how to build the official docker image

Open dgo2dance opened this issue 3 years ago • 1 comments

image

docker-compose. XML is the content of the following file. Dockerfile is the content pulled from GIT

pgsql: image: "postgres:13" volumes: - "./dataCusdis:/var/lib/postgresql/data" environment: - POSTGRES_USER=cusdis - POSTGRES_DB=cusdis - POSTGRES_PASSWORD=password cusdis: build: ../cusdis-master image: "djyde/cusdis" ports: - "3000:3000" environment: - USERNAME=admin - PASSWORD=password - JWT_SECRET=ofcourseistillloveyou - NEXTAUTH_URL=http://localhost:3000 - DB_TYPE=pgsql - DB_URL=postgresql://cusdis:password@pgsql:5432/cusdis depends_on: - pgsql

dgo2dance avatar Feb 28 '22 07:02 dgo2dance

I think it's because you didn't expose the 5432 port in the compose file?

djyde avatar Mar 20 '22 16:03 djyde