mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-12-27 10:39:05 +01:00
Merge branch 'main' of github.com:ClusterCockpit/cc-docker
This commit is contained in:
commit
7ae6a2206d
12
README.md
12
README.md
@ -4,9 +4,9 @@ This is a setup for `docker compose` to try out a complete ClusterCockpit Applic
|
|||||||
|
|
||||||
It creates containers for:
|
It creates containers for:
|
||||||
* mysql
|
* mysql
|
||||||
* influxdb
|
|
||||||
* php-fpm
|
* php-fpm
|
||||||
* nginx
|
* nginx
|
||||||
|
* influxdb (only in dev mode)
|
||||||
* phpmyadmin (only in dev mode)
|
* phpmyadmin (only in dev mode)
|
||||||
|
|
||||||
Ports and Passwords are configured in `.env`.
|
Ports and Passwords are configured in `.env`.
|
||||||
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user