2021-06-24 18:13:05
| namhqqqq |
Hi, I'm using docker image zentaopms:15.0.1, and I want to expose MariaDB port for external using. I've tried with this docker-compose file, and try to connect to port 3306, but not working
version: "3.8" services: zentao: container_name: "zentao" image: "easysoft/zentao:15.0.1" restart: always volumes: - "./data/zentao:/www/zentaopms" - "./data/zentao-mysql:/var/lib/mysql" environment: MYSQL_ROOT_PASSWORD: "..." MYSQL_ROOT_HOST: "%" ports: - "80:80" - "3306:3306" So how can I expose MariaDB port (3306) with docker? |
| tengfei |
This contianer image does not expose 3306 port. If you want to do this, you can create a dockerfile and base on 'easysoft/zentao:15.0.1' image, then you can use your yaml to create container and find it will work.
|
1/1
Resource
- Blog
- Customer stories
- FAQ
Support
- Book a Demo
- Email Us: [email protected]