mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
update prestashop
This commit is contained in:
parent
1cfa354b45
commit
59280ff409
@ -9,21 +9,22 @@ free.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
prestashop:
|
prestashop:
|
||||||
image: vimagick/prestashop
|
image: prestashop/prestashop:1.7-7.2-apache
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8080:80"
|
||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www
|
- ./data:/var/www/html
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql
|
image: mysql:8
|
||||||
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
- MYSQL_DATABASE=prestashop
|
- MYSQL_DATABASE=prestashop
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
## Nginx Config
|
## Nginx Config
|
||||||
@ -44,7 +45,7 @@ server {
|
|||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
client_max_body_size 20M;
|
client_max_body_size 20M;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8000;
|
proxy_pass http://127.0.0.1:8080;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
}
|
||||||
@ -53,18 +54,26 @@ server {
|
|||||||
|
|
||||||
## Enable SSL
|
## Enable SSL
|
||||||
|
|
||||||
1. Activate SSL directtly on the database, (because the broken images avoid to
|
0. Open http://localhost:8080 (`ssh -L 8080:localhost:8080`)
|
||||||
|
|
||||||
|
1. Configure > Shop Parameters > Traffic & SEO > SEO & URLs > Set shop URL
|
||||||
|
|
||||||
|
- Shop domain: shop.easypi.pro
|
||||||
|
- SSL domain: shop.easypi.pro
|
||||||
|
- Base URI: /
|
||||||
|
|
||||||
|
2. Activate SSL directtly on the database, (because the broken images avoid to
|
||||||
use the activate SSL option on the admin panel, click on the url simply does
|
use the activate SSL option on the admin panel, click on the url simply does
|
||||||
not pass the test). To ativate SSL on the database i use the next query on:
|
not pass the test). To ativate SSL on the database i use the next query on:
|
||||||
|
|
||||||
UPDATE ps_configuration SET value = 1 WHERE name = 'PS_SSL_ENABLED';
|
UPDATE ps_configuration SET value = 1 WHERE name = 'PS_SSL_ENABLED';
|
||||||
|
|
||||||
2. Add the next line to the `.htacces` file to avoid teh loop redirect issue with
|
3. Add the next line to the `.htacces` file to avoid the loop redirect issue with
|
||||||
SSL enabled:
|
SSL enabled:
|
||||||
|
|
||||||
SetEnv HTTPS On
|
SetEnv HTTPS On
|
||||||
|
|
||||||
3. Configure > Shop Parameters > General > Enable SSL on all pages
|
4. Configure > Shop Parameters > General > Enable SSL on all pages
|
||||||
|
|
||||||
## Reset Admin Password
|
## Reset Admin Password
|
||||||
|
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
prestashop:
|
prestashop:
|
||||||
image: vimagick/prestashop
|
image: prestashop/prestashop:1.7-7.2-apache
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8080:80"
|
||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www
|
- ./data:/var/www/html
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql
|
image: mysql:8
|
||||||
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
- MYSQL_DATABASE=prestashop
|
- MYSQL_DATABASE=prestashop
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user