CentOS7 and CS-Cart v4.3.4 Env. Please link MySQL and upload CS-Cart files.
2.2K
This container is CS-Cart environment.
setup.confname of the configuration file.
localhost:80httpd ServerName config.
TRUETRUE or FALSEadd ErrorLog /dev/stdout to config.
TRUETRUE or FALSEadd CustomLog /dev/stdout combined to config.
docker run -it \
--name <This container name> \
--link <Your MySQL or MariaDB container>:<alias name> \
-v <Your develop directory>:/var/www/html \
reneice/docker-centos-cscart
version: '2'
services:
cscart:
container_name: my-cscart
# build: ./dockerfiles/centos7-cscart-php56
image: reneice/docker-centos-cscart
environment:
SERVER_NAME: www.example.com:80
STDOUT_ERROR_LOG: "TRUE"
STDOUT_CUSTOM_LOG: "FALSE"
ports:
- 8101:80
volumes:
- ./docroot:/var/www/html
links:
- db:db
tty: true
db:
container_name: my-cscart-mariadb
image: mariadb
ports:
- 3306:3306
volumes:
# I used to because of mysqldump or exec sql files.
# If do not use please delete.
- ./mariadb/other_data:/other_data
# If Mac of Windows is Permission Error occurs.
# Sorry. I still do not know the solution.
# - ./mariadb/database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: cscart
MYSQL_DATABASE: cscart
MYSQL_USER: cscart
MYSQL_PASSWORD: cscart
docker run -itd \
--name my_cscart \
--link mariadb:mariadb \
-e SERVER_NAME=www.example.com:80 \
-v ~/docker/my_cscart:/var/www/html \
-p 8101:80 \
reneice/docker-centos-cscart
cp cscart_v4.3.4_jp_1.zip ~/docker/my_cscart/
cd ~/docker/my_cscart/
unzip cscart_v4.3.4_jp_1.zip
chmod -R 777 config.local.php images design var
http://my_host:8101/
Perform the installation according to the screen.
MySQL Server host is alias name. this sample is mariadb.
Content type
Image
Digest
Size
285.2 MB
Last updated
about 10 years ago
docker pull reneice/docker-centos-cscart