Update README.md

This commit is contained in:
Jan Eitzinger 2021-06-22 13:36:08 +02:00 committed by GitHub
parent 88704aa128
commit efda9acc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,13 +55,15 @@ To reuse an existing Symfony tree at `./data/symfony` you may change the environ
* By default, this also uses prepared fixture data for databases. In order to use an existing database, changes in `.env` and `docker-compose.yml` are required (see below). * By default, this also uses prepared fixture data for databases. In order to use an existing database, changes in `.env` and `docker-compose.yml` are required (see below).
### Setup ### Setup
This description assumes you will let the docker setup initialize the symfony tree and data fixtures for you.
If not using an existing database, the fixture data needs to be prepared before the first start of the containers: If not using an existing database, the fixture data needs to be prepared before the first start of the containers:
* `$ cd data` * `$ cd data`
* `$ ./init.sh` * `$ ./init.sh dev`
In `.env`, change the following variables under `APP` In `.env`, change the following variables under `APP`
* `APP_ENVIRONMENT` to `dev` * `APP_ENVIRONMENT` to `dev`
After that from the root of the repository you can start up the containers with: After that from the root of the repository you can start up the containers with (use -d switch to startup in detached mode):
* `docker-compose -f docker-compose.yml -f docker-compose-dev.yml up` * `docker-compose -f docker-compose.yml -f docker-compose-dev.yml up`
* Wait... and wait a little longer * Wait... and wait a little longer
@ -69,7 +71,7 @@ After the initial setup you have to:
* Comment or delete the line `- ${DATADIR}/sql:/docker-entrypoint-initdb.d` for `cc-db` to disable initialisation of the MySQL database. * Comment or delete the line `- ${DATADIR}/sql:/docker-entrypoint-initdb.d` for `cc-db` to disable initialisation of the MySQL database.
* Set `APP_CLUSTERCOCKPIT_INIT` to `false` in the .env file * Set `APP_CLUSTERCOCKPIT_INIT` to `false` in the .env file
On subsequent start of the containers you will then use the persisted volume data located in the `./data` directory. On subsequent start of the containers you will then reuse the persisted volume data located in the `./data` directory.
By default, you can access ClusterCockpit in your browser at `http://localhost`. By default, you can access ClusterCockpit in your browser at `http://localhost`.
If `NGINX_PORT` environment variable was changed, `use http://localhost:$PORT`. If `NGINX_PORT` environment variable was changed, `use http://localhost:$PORT`.
@ -80,4 +82,4 @@ If default database fixture were used, the credentials for admin user are:
* User: `admin` * User: `admin`
* Password: `AdminDev` * Password: `AdminDev`
You can shutdown the containers by pressing `CTRL-C`. You can shutdown the containers by pressing `CTRL-C` if not started in detached mode.