docker-owa
docker-owa copied to clipboard
docker-compose related suggestions
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 ifowa-config.php
file not found
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
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.
I didn't modify .env file before I ran docker-compose up, I have now changed it how do I reinstall?