HiEventsDev / Hi.Events

Open-source event management and ticket selling platform. Perfect for concerts, conferences, and everything in between 🎟️
https://hi.events
Other
2.26k stars 201 forks source link

🐛Docker Compose Error in Windows #140

Open AliRaza-commits opened 3 months ago

AliRaza-commits commented 3 months ago

Bug: I get error when running docker in windows.

Steps to reproduce the behavior: 1- git clone https://github.com/HiEventsDev/Hi.Events.git

  1. cd docker/all-in-one folder
  2. docker compose up -d

Expected behavior Should have successfully started project

Screenshots error-docker

Desktop (please complete the following information):

Hi.Events Version and platform hieventsdev/hi.events (version) : 0.0.1

Logs => ERROR [all-in-one stage-2 3/6] COPY ./docker/all-in-one/supervisor/supervisord.conf /etc/supervisord.conf 0.0s => ERROR [all-in-one stage-2 2/6] COPY ./docker/all-in-one/nginx/nginx.conf /etc/nginx/nginx.conf 0.0s => ERROR [all-in-one stage-2 4/6] COPY ./docker/all-in-one/scripts/startup.sh /startup.sh

It seems there is issue in copying above three files. I updated docker-compose.yml file

context: ./../../

to:

context: c:/xampp/htdocs/HiEvents

For debugging purpose, I changed Dockerfile.all-in-one file to understand folder listing:

COPY . /context/

I noticed all folders that appeared were actually from xampp folders using previous context. But after updating context, I could see all folders started to appear from HiEvents. But when I use:

COPY ./docker /context/

No folder appear now and if I further add all-in-one to above statement. I get error again.

It seems I couldn't copy docker folder even though it appear when I use "." with copy statement. Any help will be greatly appreciated as I invested heavy time to debug this issue.

daveearley commented 3 months ago

Hi @AliRaza-commits, did you figure this out? Unfortunately I don't have access to a Windows system, so debugging is difficult.

AliRaza-commits commented 3 months ago

Unfortunately I couldn't figure this out. I don't have much docker experience. Any help will be greatly appreciated

tasnim0tantawi commented 3 months ago

Will try to check this

renatoruis commented 3 months ago

Hey @AliRaza-commits try run with --no-cache or --force-recreate like this:

docker compose up -d --no-cache --force-recreate

AliRaza-commits commented 3 months ago

Hey @AliRaza-commits try run with --no-cache or --force-recreate like this:

docker compose up -d --no-cache --force-recreate

No its not working in windows @renatoruis . Did you run in windows?