skip to Main Content

Docker doesn't create database

I have Dockerfile: FROM postgres ENV POSTGRES_USER root ENV POSTGRES_PASSWORD root ENV POSTGRES_DB world COPY world.sql /docker-entrypoint-initdb.d/ I run docker build -t postgres, then I create container but it doesn't create database in PG. Does anyone have any idea? world.sql…

VIEW QUESTION

How to build a Docker image?

I have a directory named docker which contains the following two files: docker: |_Dockerfile |_main.py The Dockerfile looks like this: #Specifying the base image FROM python:3.10 #here the dockerfile is pulling the python 3.10 from docker hub which already has…

VIEW QUESTION

Docker Nginx with React and Laravel

So I want to have a single Nginx web server serving both frontend and backend with Docker. Here is my docker-compose: version: "3.8" services: db: #mysqldb image: mysql:5.7 container_name: ${DB_SERVICE_NAME} restart: unless-stopped environment: MYSQL_DATABASE: ${DB_DATABASE} MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} MYSQL_PASSWORD: ${DB_PASSWORD} MYSQL_USER:…

VIEW QUESTION
Back To Top
Search