mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
update opencart
This commit is contained in:
parent
33aefb01c1
commit
9d94a8a87a
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
FROM php:7.2-apache
|
FROM php:7.2-apache
|
||||||
MAINTAINER kev <noreply@easypi.pro>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
@ -13,15 +13,15 @@ RUN set -xe \
|
|||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
||||||
&& docker-php-ext-install gd mbstring mysqli zip \
|
&& 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
|
&& docker-php-ext-enable mcrypt
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
ENV OPENCART_VER 3.0.2.0
|
ENV OPENCART_VERSION=3.0.3.7
|
||||||
ENV OPENCART_MD5 41c7e7ec49d389fc4c2204efb40289e6
|
ENV OPENCART_MD5=52288349b779a4517d4b7987253caceb
|
||||||
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
|
ENV OPENCART_URL=https://github.com/opencart/opencart/archive/${OPENCART_VERSION}.tar.gz
|
||||||
ENV OPENCART_FILE opencart.tar.gz
|
ENV OPENCART_FILE=opencart.tar.gz
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
||||||
|
@ -7,20 +7,28 @@ friendly and with a visually appealing interface.
|
|||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
opencart:
|
version: "3.8"
|
||||||
image: vimagick/opencart
|
|
||||||
ports:
|
|
||||||
- "8000:80"
|
|
||||||
links:
|
|
||||||
- mysql
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
mysql:
|
services:
|
||||||
image: mysql
|
|
||||||
environment:
|
opencart:
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
image: vimagick/opencart
|
||||||
- MYSQL_DATABASE=opencart
|
ports:
|
||||||
restart: always
|
- "8000:80"
|
||||||
|
volumes:
|
||||||
|
- /var/www
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
|
- MYSQL_DATABASE=opencart
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
[1]: http://www.opencart.com/index.php
|
[1]: http://www.opencart.com/index.php
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
opencart:
|
version: "3.8"
|
||||||
image: vimagick/opencart
|
|
||||||
ports:
|
|
||||||
- "8000:80"
|
|
||||||
links:
|
|
||||||
- mysql
|
|
||||||
volumes:
|
|
||||||
- /var/www
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
mysql:
|
services:
|
||||||
image: mysql
|
|
||||||
volumes:
|
opencart:
|
||||||
- ./data:/var/lib/mysql
|
image: vimagick/opencart
|
||||||
environment:
|
ports:
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
- "8000:80"
|
||||||
- MYSQL_DATABASE=opencart
|
volumes:
|
||||||
restart: always
|
- /var/www
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
|
- MYSQL_DATABASE=opencart
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user