Docker Community Forums

Share and learn in the Docker community.

Problem with same config diferent project

The problem is, I create a docker-compose that it works perfect, i will call it project1. Then i just copy all the content of project1 and call it projec2. I change the thinks like folder of webproject, etc. i paste my example of docker-compose.yml

version: ‘3.3’
services:
web:
build:
context: ./prueba.info
dockerfile: Dockerfile

#image: php:5.6-apache
depends_on: 
  - db
container_name: php56
volumes: 
  - ./prueba.info:/var/www/html/prueba.info/
  - ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
  
ports:
  - 80:80

db:
container_name: msql5
image: mysql:5.7.30
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: prueba
MYSQL_USER: devuser
MYSQL_PASSWORD: devpass
ports:

  • 6033:3306

Dockerfile:
FROM php:5.6-apache
RUN apt-get update && apt-get upgrade -y
RUN docker-php-ext-install mysqli
RUN a2enmod rewrite
RUN service apache2 restart
EXPOSE 80

This same file is working fine with Project1, but in Project2 is stuck, in the console just saw this “Building web” for like 20 min and nothing happen.
I changed the name of the containers and stuff like that and the error persist.

Can it be possibol that is cattchig something from the otter projerc or folder?
I got differents folders like /project1 and /project2, but with the same that’s what happens.

Can someone tell me who to debug or fix this problem?