mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
update opencart
This commit is contained in:
parent
33aefb01c1
commit
9d94a8a87a
@ -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} \
|
||||
|
@ -7,20 +7,28 @@ friendly and with a visually appealing interface.
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
opencart:
|
||||
image: vimagick/opencart
|
||||
ports:
|
||||
- "8000:80"
|
||||
links:
|
||||
- mysql
|
||||
restart: always
|
||||
version: "3.8"
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=opencart
|
||||
restart: always
|
||||
services:
|
||||
|
||||
opencart:
|
||||
image: vimagick/opencart
|
||||
ports:
|
||||
- "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,18 +1,22 @@
|
||||
opencart:
|
||||
image: vimagick/opencart
|
||||
ports:
|
||||
- "8000:80"
|
||||
links:
|
||||
- mysql
|
||||
volumes:
|
||||
- /var/www
|
||||
restart: always
|
||||
version: "3.8"
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
volumes:
|
||||
- ./data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=opencart
|
||||
restart: always
|
||||
services:
|
||||
|
||||
opencart:
|
||||
image: vimagick/opencart
|
||||
ports:
|
||||
- "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
|
||||
|
Loading…
Reference in New Issue
Block a user