1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update opencart

This commit is contained in:
kev 2021-04-16 15:47:27 +08:00
parent 33aefb01c1
commit 9d94a8a87a
3 changed files with 48 additions and 36 deletions

View File

@ -3,7 +3,7 @@
#
FROM php:7.2-apache
MAINTAINER kev <noreply@easypi.pro>
MAINTAINER EasyPi Software Foundation
RUN a2enmod rewrite
@ -13,15 +13,15 @@ RUN set -xe \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mbstring mysqli zip \
&& pecl install mcrypt-1.0.1 \
&& pecl install mcrypt-1.0.4 \
&& docker-php-ext-enable mcrypt
WORKDIR /var/www/html
ENV OPENCART_VER 3.0.2.0
ENV OPENCART_MD5 41c7e7ec49d389fc4c2204efb40289e6
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
ENV OPENCART_FILE opencart.tar.gz
ENV OPENCART_VERSION=3.0.3.7
ENV OPENCART_MD5=52288349b779a4517d4b7987253caceb
ENV OPENCART_URL=https://github.com/opencart/opencart/archive/${OPENCART_VERSION}.tar.gz
ENV OPENCART_FILE=opencart.tar.gz
RUN set -xe \
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \

View File

@ -7,20 +7,28 @@ friendly and with a visually appealing interface.
## docker-compose.yml
```yaml
version: "3.8"
services:
opencart:
image: vimagick/opencart
ports:
- "8000:80"
links:
volumes:
- /var/www
depends_on:
- mysql
restart: always
restart: unless-stopped
mysql:
image: mysql
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=opencart
restart: always
restart: unless-stopped
```
[1]: http://www.opencart.com/index.php

View File

@ -1,12 +1,16 @@
version: "3.8"
services:
opencart:
image: vimagick/opencart
ports:
- "8000:80"
links:
- mysql
volumes:
- /var/www
restart: always
depends_on:
- mysql
restart: unless-stopped
mysql:
image: mysql
@ -15,4 +19,4 @@ mysql:
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=opencart
restart: always
restart: unless-stopped