Skip to content

Instantly share code, notes, and snippets.

@maxixcom
Last active December 2, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxixcom/ca8aeb89539f218f17a23f71945832fe to your computer and use it in GitHub Desktop.
Save maxixcom/ca8aeb89539f218f17a23f71945832fe to your computer and use it in GitHub Desktop.
Prestashop docker-compose
PROJECT_ID=dev
PROJECT_DIR=/home/maxix/Workspace/prestashop
DOCKER_EXTERNAL_NETWORK=dev_net
PS_DOMAIN=localhost:10080
HTTP_PORT=10080
MYSQL_PORT=13306
version: "3.3"
services:
mysql:
image: mysql:5.7
container_name: ${PROJECT_ID}-mysql
environment:
- MYSQL_ROOT_PASSWORD=admin
ports:
- ${MYSQL_PORT}:3306
command: --default-authentication-plugin=mysql_native_password
networks:
default:
aliases:
- mysql.vm
prestashop:
image: prestashop/prestashop:latest
container_name: ${PROJECT_ID}-prestashop
environment:
- PS_DEV_MODE=false
- PS_INSTALL_AUTO=0
- PS_DOMAIN=${PS_DOMAIN}
- DB_SERVER=mysql.vm
ports:
- ${HTTP_PORT}:80
volumes:
- ${PROJECT_DIR}/src:/var/www/html
networks:
default:
aliases:
- prestashop.vm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment