https://github.com/mdelapenya/docker-liferay-portal-mysql
Out-of-the-box Liferay portal image, including MySQL in the same container
https://github.com/mdelapenya/docker-liferay-portal-mysql
liferay liferay-portal liferay7 mysql
Last synced: about 1 month ago
JSON representation
Out-of-the-box Liferay portal image, including MySQL in the same container
- Host: GitHub
- URL: https://github.com/mdelapenya/docker-liferay-portal-mysql
- Owner: mdelapenya
- Created: 2017-01-30T11:08:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-14T11:10:44.000Z (almost 7 years ago)
- Last Synced: 2025-04-14T23:51:49.093Z (about 1 month ago)
- Topics: liferay, liferay-portal, liferay7, mysql
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Connecting to the bundled MySQL server from outside the container
The first time that you run the container, a new user `admin` with all privileges
will be created in MySQL with a random password. To get the password, check the logs
of the container by running:```shell
docker logs $CONTAINER_ID
```You will see an output like the following:
```shell
========================================================================
You can now connect to this MySQL Server using:mysql -uadmin -p47nnf4FweaKu -h -P
Please remember to change the above password as soon as possible!
MySQL user 'root' has no password but only allows local connections
========================================================================
```In this case, `47nnf4FweaKu` is the password allocated to the `admin` user.
You can then connect to MySQL:
```shell
mysql -uadmin -p47nnf4FweaKu
```Remember that the `root` user does not allow connections from outside the container -
you should use this `admin` user instead!## Setting a specific password for the MySQL server admin account
If you want to use a preset password instead of a random generated one, you can
set the environment variable `MYSQL_PASS` to your specific password when running the container:```shell
docker run -d -p 80:80 -p 3306:3306 -e MYSQL_PASS="mypass" mdelapenya/liferay-portal-mysql
```You can now test your new admin password:
```shell
mysql -uadmin -p"mypass"
```