Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix docker-compose syntax error #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,27 @@ Access your new Mautic on `http://localhost:8080` or `http://host-ip:8080` in a

Example `docker-compose.yml` for `mautic`:

mautic:
image: mautic/mautic:latest
links:
- mauticdb:mysql
ports:
- 8080:80
volumes:
- mautic_data:/var/www/html
environment:
- MAUTIC_DB_HOST=127.0.0.1
- MAUTIC_DB_USER=root
- MAUTIC_DB_PASSWORD=mysecret
- MAUTIC_DB_NAME=mautic

mauticdb:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD=mysecret
version: '2'
services:
mautic:
image: mautic/mautic:latest
links:
- mauticdb
ports:
- 8080:80
# Uncommend if need to persist data in host volumens or for development purposes
# volumes:
# - mautic_data:/var/www/html
environment:
- MAUTIC_DB_HOST=mauticdb
- MAUTIC_DB_USER=root
- MAUTIC_DB_PASSWORD=mysecret
- MAUTIC_DB_NAME=mautic

mauticdb:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD=mysecret

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

environment is an array, it must be:

- MYSQL_ROOT_PASSWORD=mysecret


Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.

Expand Down