vladk1m0 / docker-owa

Open Web Analytics docker image based on Alpine Linux
MIT License
18 stars 19 forks source link

docker-compose related suggestions #3

Open nagimov opened 5 years ago

nagimov commented 5 years ago

Just a couple suggestions to your compose config:

belforto commented 5 years ago

There are some problem with mysql, I changed to following config to make it work. Still cant connect to mysql server , problem is with login

version: '3' services: app: image: vladk1m0/docker-owa:latest container_name: open-web-analytics depends_on:

vladk1m0 commented 5 years ago

Just a couple suggestions to your compose config:

* you don't need to expose mysql port on the host if you tie it through bridged network, so `3309:3309` is excessive (also opens the port on the host for no reason)

* I'd also suggest copying mysql connection settings from env file to `owa-config.php` directly if `owa-config.php` file not found

@nagimov thank you for your improovement suggestion!

Exposing container port 3306 to host in docker-compose deployment was configured by default to external access to Mysql with DB management tool. I'am agree with you and remove default port eosing in commit 69a1179

Can't include owa-config.php with default Mysql connection settings in OWA container, because:

ralyodio commented 5 years ago

I didn't modify .env file before I ran docker-compose up, I have now changed it how do I reinstall?