Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docker-compose related suggestions #3

Open
nagimov opened this issue Jan 11, 2019 · 3 comments
Open

docker-compose related suggestions #3

nagimov opened this issue Jan 11, 2019 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@nagimov
Copy link

nagimov commented Jan 11, 2019

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
@belforto
Copy link

belforto commented Feb 7, 2019

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:
- db
networks:
- owa_net
environment:
- TIME_ZONE="Europe/Moscow" # Default value UTC
ports:
- 8080:80
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
db:
image: mysql:5.7
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=owa
- MYSQL_DATABASE=owa
- MYSQL_USER=owa
- MYSQL_PASSWORD=owa
ports:
- 3306:3306
networks:
- owa_net
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
networks:
owa_net:
driver: bridge

@vladk1m0 vladk1m0 added question Further information is requested improvement and removed improvement labels Mar 17, 2019
@vladk1m0 vladk1m0 self-assigned this Mar 17, 2019
@vladk1m0
Copy link
Owner

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:

  • this is default params, whose must be changed in your deployment;
  • in my deployments OWA connect to standalone Mysql installation and params must be configured in first run.

@vladk1m0 vladk1m0 reopened this Mar 17, 2019
@ralyodio
Copy link

ralyodio commented May 5, 2019

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

Repository owner deleted a comment from Arpitkandwal Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants