skip to Main Content

Postgres Docker image sometimes fail to start

I'm working on a Python project which uses Docker Compose with a Postgres service. compose/postgresql/Dockerfile: FROM postgres:16.1-bullseye COPY init.sql /docker-entrypoint-initdb.d/init.sql compose/postgresql/init.sql: (basic account setup) -- Create database & user CREATE DATABASE ${POSTGRES_DB}; CREATE USER ${POSTGRES_USER} WITH ENCRYPTED PASSWORD ${POSTGRES_PASSWORD}; --…

VIEW QUESTION

Why does my docker-compose.yml file dont find my Dockerfile*end file

I am trying to make a docker container run off of my docker-compose file: version: '3' services: memory_Backend: build: context: ./ dockerfile: ./project/docker/DockerfileBackend image: memoryapi_ad_img volumes: - ./:/var/lib ports: - 15555:25555 memory_Frontend: build: context: ./ dockerfile: ./project/docker/DockerfileFrontend image: memorywebsite_ad_img volumes:…

VIEW QUESTION
Back To Top
Search