Comments (2)
Hi @fabiante, Docker links are a legacy feature that may be removed in the future as you can read in the note bellow.
Warning: The --link flag is a legacy feature of Docker. It may eventually be removed. Unless you absolutely need to continue using it, we recommend that you use user-defined networks to facilitate communication between two containers instead of using --link. One feature that user-defined networks do not support that you can do with --link is sharing environmental variables between containers. However, you can use other mechanisms such as volumes to share environment variables between containers in a more controlled way.
Legacy container links
In this case I would recommend you using docker networks.
You need to create a network for Mautic and MySQL and then set all the env variables needed to make them able to communicate between them.
Also, you can make all data from DB and Mautic persistent across reboots with volumes.
This is the content of my docker deployment configuration files:
docker-compose.yml
version: '3.0'
services:
mautic:
image: mautic/mautic
ports:
- "80:80"
env_file:
- mautic.env
volumes:
- mautic-data:/var/www/html
networks:
- mautic-net
depends_on:
- db-mautic
db-mautic:
image: mysql:5.6
volumes:
- db-mautic-data:/var/lib/mysql
env_file:
- mautic.env
networks:
- mautic-net
volumes:
db-mautic-data:
mautic-data:
networks:
mautic-net:
mautic.env
MYSQL_HOST=db-mautic
MYSQL_ROOT_PASSWORD=sierra75nevada
MYSQL_USER=mautic
MYSQL_PASSWORD=mautic
MYSQL_DATABASE=mautic
MAUTIC_DB_HOST=db-mautic:3306
MAUTIC_DB_USER=mautic
MAUTIC_DB_PASSWORD=mautic
MAUTIC_DB_NAME=mautic
If you wish, you can learn more about Docker networks here:
Have a nice day!
from docker-mautic.
Thank you! I got it working some weeks ago with a similar setup.
from docker-mautic.
Related Issues (20)
- Cannot set SMTP configuration in Mautic 5 HOT 2
- Queue for failures using RabbitMQ HOT 1
- env var to create admin user seems broken in V5 HOT 3
- mautic-web not allowed to connect to this MySQL server HOT 21
- How to upgrade from v4 to v5 HOT 2
- Mautic 5.0.3 FPM docroot issue HOT 2
- cronjob mautic:import won't work properly if added in cron/mautic
- Table 'messenger_messages' already exists - example/basic HOT 6
- Mautic seems to reinstall intself after taking pod down
- Update 5.0.4 HOT 8
- Docker composer is in bin but not working
- Building own image fails
- docker images for 4.4.12 are missing on hub.docker.com
- Mautic not installed problem HOT 1
- Email editor it is not possible to upload images grapesjsbuilder.assetManager.noAssets HOT 1
- On-the-fly asset generation is broken HOT 3
- Amazon SES on Mautic5 (docker-mautic image) HOT 1
- Title: Installation Issue with Mautic 5 using Docker: mQuery Function Error HOT 1
- [Suggestion] Mautic 5 - Plugins Install
- Mautic_cron can't access database due to no env variables in cron jobs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mautic.