How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 1
- Joined: 16 Mar 2022, 15:10
How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?
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,
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.
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
Code: Select all
composer create-project aimeos/aimeos shop_name_goes_here
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.
Re: How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?
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
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, give us a star
If you like Aimeos, give us a star
Re: How to view Aimeos Laravel Site locally through browser (Docker, MySql, NGINX)?
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:aimeos wrote: ↑18 Mar 2022, 08:04 Use Laravel Sail instead to create a dockerized Laravel application:
https://laravel.com/docs/9.x/sail
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
- Linux Mint 21
- no composer no php (I use docker to keep my dev machine clean)
https://laracasts.com/discuss/channels/ ... -installed