update prestashop

This commit is contained in:
kev 2021-04-13 15:23:19 +08:00
parent fb4a94ba42
commit 6a5b3cbd11
2 changed files with 42 additions and 32 deletions

View File

@ -8,23 +8,28 @@ free.
## docker-compose.yml ## docker-compose.yml
```yaml ```yaml
prestashop: version: "3.8"
image: prestashop/prestashop:1.7-7.2-apache
ports:
- "8080:80"
links:
- mysql
volumes:
- ./data:/var/www/html
restart: unless-stopped
mysql: services:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password prestashop:
environment: image: prestashop/prestashop:1.7-apache
- MYSQL_ROOT_PASSWORD=root ports:
- MYSQL_DATABASE=prestashop - "8080:80"
restart: unless-stopped volumes:
- ./data/prestashop:/var/www/html
depends_on:
- mysql
restart: unless-stopped
mysql:
image: mariadb:10
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=prestashop
restart: unless-stopped
``` ```
## Nginx Config ## Nginx Config

View File

@ -1,17 +1,22 @@
prestashop: version: "3.8"
image: prestashop/prestashop:1.7-7.2-apache
ports:
- "8080:80"
links:
- mysql
volumes:
- ./data:/var/www/html
restart: unless-stopped
mysql: services:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password prestashop:
environment: image: prestashop/prestashop:1.7-apache
- MYSQL_ROOT_PASSWORD=root ports:
- MYSQL_DATABASE=prestashop - "8080:80"
restart: unless-stopped volumes:
- ./data/prestashop:/var/www/html
depends_on:
- mysql
restart: unless-stopped
mysql:
image: mariadb:10
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=prestashop
restart: unless-stopped