Skip to content

Instantly share code, notes, and snippets.

@saitanay
Last active December 31, 2020 14:34
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 saitanay/2a5617cd7ff875780e1b503d9a0bae2f to your computer and use it in GitHub Desktop.
Save saitanay/2a5617cd7ff875780e1b503d9a0bae2f to your computer and use it in GitHub Desktop.
# Use root/example as user/password credentials
# Replace /Users/tanaysai/dev/mautic-comm/mautic with the folder name where you have your mautic codebase.
# This could be relative to the location of this file. Below I have an absolute address that I used.
# Same with "../dockerdata/mysql". I have a mysql folder to save the db info one level outside the location of this file.
# You can update this to a different folder as you see it fit
version: '3.1'
services:
php:
build: .
ports:
- "80:80"
volumes:
- /Users/tanaysai/dev/mautic-comm/mautic:/var/www/html
links:
- db
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
ports:
- "3306:3306"
volumes:
- ../dockerdata/mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment