How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
saaaaaaaaad
Posts: 1
Joined: 16 Mar 2022, 15:10

How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?

Post by saaaaaaaaad » 17 Mar 2022, 15:25

Hi,
I am totally new to the laravel stack. Trying to dockerize Aimeos.
Here is what I did,

1. Created php, nginx and mysql containers using the following images,
  • aimeos/ci-php:7.4
  • cimg/mysql:8.0
  • nginx:1.19.8-alpine
2. Installed the Aimeos package in the php container using the command,

Code: Select all

composer create-project aimeos/aimeos shop_name_goes_here
I've pasted the contents of my .env file, docker-compose file and nginx config file in this paste,
https://dpaste.org/Kx0F

I am unable to visit the home page of the shop using localhost:8100 (the port set up for nginx). I don't know what changes to make for this to work. It would be really great if someone could help this beginner.

Thanks.

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?

Post by aimeos » 18 Mar 2022, 08:04

The aimeos/ci-php docker image is only for continuous integration testing and not meant for other usage.
Use Laravel Sail instead to create a dockerized Laravel application:
https://laravel.com/docs/9.x/sail
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mbnoimi
Posts: 2
Joined: 11 Aug 2022, 20:12

Re: How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?

Post by mbnoimi » 11 Aug 2022, 20:25

aimeos wrote: 18 Mar 2022, 08:04 Use Laravel Sail instead to create a dockerized Laravel application:
https://laravel.com/docs/9.x/sail
I've the same issue too. So I went to Sail docs as you mentioned above. The problem I faced that the repository already hasn't docker-compose.yml and vendor folder so sail will fail as mentioned below:

How can I run aimeos using sail?

Code: Select all

$ git clone https://github.com/aimeos/aimeos.git
$ cd aimeos
$ chmod u+x sail
$ ./sail up
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml
        
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml
I use:
  • Linux Mint 21
  • no composer no php (I use docker to keep my dev machine clean)
BTW, I tried these two fixesbut don't help me much
https://laracasts.com/discuss/channels/ ... -installed

Post Reply