PHP code example of karser / easy-quick-import
1. Go to this page and download the library: Download karser/easy-quick-import library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
karser / easy-quick-import example snippets
yaml
version: '3.3'
services:
php:
image: registry.dev.trackmage.com/karser/easyquickimport/app_php
environment:
APP_ENV: 'prod'
DATABASE_URL: 'mysql://eqi:pass123@mysql:3306/easyquickimport?serverVersion=mariadb-10.2.22'
MAILER_DSN: 'smtp://localhost'
# MAILER_DSN: 'ses://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1'
# MAILER_DSN: 'ses+smtp://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1'
DOMAIN: 'your-domain.com'
depends_on:
- mysql
networks:
- backend
nginx:
image: registry.dev.trackmage.com/karser/easyquickimport/app_nginx
depends_on:
- php
networks:
- backend
- webproxy
labels:
- "traefik.backend=easyquickimport-nginx"
- "traefik.docker.network=webproxy"
- "traefik.frontend.rule=Host:your-domain.com"
- "traefik.enable=true"
- "traefik.port=80"
mysql:
image: leafney/alpine-mariadb:10.2.22
environment:
MYSQL_ROOT_PWD: 'pass123'
MYSQL_USER: 'eqi'
MYSQL_USER_PWD: 'pass123'
MYSQL_USER_DB: 'easyquickimport'
volumes:
- ./db_data/:/var/lib/mysql
networks:
- backend
networks:
backend:
webproxy:
external: true