mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 08:27:24 +01:00
Update README.md
This commit is contained in:
parent
88704aa128
commit
efda9acc9b
10
README.md
10
README.md
@ -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).
|
||||
|
||||
### 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:
|
||||
* `$ cd data`
|
||||
* `$ ./init.sh`
|
||||
* `$ ./init.sh dev`
|
||||
|
||||
In `.env`, change the following variables under `APP`
|
||||
* `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`
|
||||
* 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.
|
||||
* 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`.
|
||||
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`
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user