Cannot deploy
samuehfdez
TRIALOP

a year ago

Hi, I'm encountering the following issue

21 | # build phase

22 | COPY . /app/.

23 | >>> RUN docker compose up --build && docker compose up -d && composer install && npm install && npm run dev && php artisan migrate --force && php artisan optimize && chmod 777 -R storage/ && chmod 777 -R bootstrap/cache && php artisan storage:link

24 |

25 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c docker compose up --build && docker compose up -d && composer install && npm install && npm run dev && php artisan migrate --force && php artisan optimize && chmod 777 -R storage/ && chmod 777 -R bootstrap/cache && php artisan storage:link" did not complete successfully: exit code: 127

Error: Docker build failed

My Laravel v9 project is on a docker container, I'm following a video on how to deploy it but it's different from my case because of the docker-compose.yml, any help would be great for me, I must deploy the project for the presentation to my teachers

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

6 Replies

brody
EMPLOYEE

a year ago

RUN docker compose up --build && docker compose up

Railway does not support docker compose in any way.


samuehfdez
TRIALOP

a year ago

So what's the solution for the problem?


brody
EMPLOYEE

a year ago

Do not attempt to use docker compose.


samuehfdez
TRIALOP

a year ago

but if my Laravel project is based on the container how can i solve that? "Extracting" the application from the docker container?


brody
EMPLOYEE

a year ago

Don't use docker compose in the build command, please don't overthink this.


samuehfdez
TRIALOP

a year ago

Okey, thanks for the help!


Loading...