Last active
February 24, 2020 18:52
-
-
Save rangerz/dc26b43d4982312502e3c24263d05a6d to your computer and use it in GitHub Desktop.
Fixed ionCube issue for docker-magento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# phpfpm: | |
# build: images/php | |
edit docker-compose.yml | |
# Put "Dockfile" into ./images/php/ | |
mv Dockfile ./images/php/ | |
# Restart all containers | |
./bin/resatrt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mark Shust's Docker Configuration for Magento (https://github.com/markshust/docker-magento) | |
# Version 29.0.0 | |
version: "3" | |
services: | |
app: | |
image: markoshust/magento-nginx:1.13-8 | |
ports: | |
- "80:8000" | |
- "443:8443" | |
links: | |
- db | |
- phpfpm | |
volumes: &appvolumes | |
- ~/.composer:/var/www/.composer:delegated | |
- appdata:/var/www/html | |
- sockdata:/sock | |
- ssldata:/etc/nginx/certs | |
phpfpm: | |
build: images/php | |
#image: markoshust/magento-php:7.2-fpm | |
links: | |
- db | |
volumes: *appvolumes | |
db: | |
image: percona:5.7 | |
ports: | |
- "3306:3306" | |
env_file: env/db.env | |
volumes: | |
- dbdata:/var/lib/mysql | |
redis: | |
image: redis:5.0 | |
elasticsearch: | |
image: markoshust/magento-elasticsearch:6.5.4-0 | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
rabbitmq: | |
image: rabbitmq:3.7-management | |
ports: | |
- "15672:15672" | |
- "5672:5672" | |
volumes: | |
- rabbitmqdata:/var/lib/rabbitmq | |
# Disabling cron by default as it uses higher CPU, enable if needed | |
#cron: | |
# image: markoshust/magento-php:7.3-fpm-4 | |
# user: root | |
# command: /usr/local/bin/cronstart | |
# tty: true | |
# links: | |
# - db | |
# volumes: *appvolumes | |
volumes: | |
appdata: | |
dbdata: | |
rabbitmqdata: | |
sockdata: | |
ssldata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM markoshust/magento-php:7.2-fpm | |
USER root | |
# Remove Wrong PHP extension ini | |
RUN rm -f /usr/local/etc/php/conf.d/00_docker-php-ext-ioncube_loader_lin_7.2.ini | |
RUN cd /tmp \ | |
&& curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \ | |
&& tar zxvf ioncube_loaders_lin_x86-64.tar.gz \ | |
&& export PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") \ | |
&& export PHP_EXT_DIR=$(php-config --extension-dir) \ | |
&& cp "./ioncube/ioncube_loader_lin_${PHP_VERSION}.so" "${PHP_EXT_DIR}/ioncube.so" \ | |
&& rm -rf ./ioncube \ | |
&& rm ioncube_loaders_lin_x86-64.tar.gz \ | |
&& docker-php-ext-enable ioncube | |
USER app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment