cusdis
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

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
I think it's because you didn't expose the 5432 port in the compose file?