... | ... | @@ -22,7 +22,35 @@ Via: |
|
|
|
|
|
### 3) Setup un env dans le back:
|
|
|
|
|
|
Copier le template.env présent dans le repository; Remplir les variables avec ces valeurs (certaines sont a remplir plus tard lors de l'installation)
|
|
|
Copier dans un fichier .env le template.env présent dans le repository; Remplir les variables avec par exemple ces valeurs par défaut (certaines sont a remplir plus tard lors de l'installation)
|
|
|
|
|
|
```
|
|
|
NODE_ENV=dev
|
|
|
SERVICE_API_BIND_PORT=3000
|
|
|
JWT_SECRET=my_jwt_secret
|
|
|
MONGO_ROOT_PASSWORD=root
|
|
|
MONGO_NON_ROOT_USERNAME=resin
|
|
|
MONGO_NON_ROOT_PASSWORD=resin
|
|
|
MONGO_PORT=27017
|
|
|
MONGO_DB_HOST_AND_PORT=localhost:27017
|
|
|
ME_CONFIG_BASICAUTH_USERNAME=resin
|
|
|
ME_CONFIG_BASICAUTH_PASSWORD=resin
|
|
|
ME_PORT=16560
|
|
|
SALT=$2a$12$vLQjJ9zAWyUwiXLeQDa6w.
|
|
|
|
|
|
GHOST_PORT=2368
|
|
|
GHOST_DB_PASSWORD=root
|
|
|
|
|
|
GHOST_HOST_AND_PORT=http://ghost:2368
|
|
|
USER_PWD=totoTata9!
|
|
|
ELASTICSEARCH_NODE=http://localhost:9200
|
|
|
ELASTICSEARCH_PATH=localhost:9200
|
|
|
ELASTICSEARCH_PORT=9200
|
|
|
ELASTICSEARCH_USERNAME=elastic
|
|
|
ELASTICSEARCH_PASSWORD=changeme
|
|
|
ELASTIC_SECURITY=true
|
|
|
KIBANA_PORT=5601
|
|
|
```
|
|
|
|
|
|
### 4) Lancer les scripts d’installation back et front:
|
|
|
|
... | ... | @@ -38,6 +66,7 @@ $ docker-compose up -d mongo-express # Lancement de l'interface admin de la BDD |
|
|
$ docker-compose up -d ghost-db # Lancement de la BDD ghost
|
|
|
$ docker-compose up -d ghost # Lancement du backoffice ghost
|
|
|
$ docker-compose up -d es01 # Lancement du container elastic search
|
|
|
$ docker-compose up -d kib01 # Lancement du container kibana
|
|
|
```
|
|
|
|
|
|
### 6) Installer ghost
|
... | ... | @@ -46,7 +75,7 @@ Suivre [ce lien](https://forge.grandlyon.com/web-et-numerique/pamn_plateforme-de |
|
|
|
|
|
### 7) Installation d'un dump de la database
|
|
|
|
|
|
Suivre [ce lien](https://forge.grandlyon.com/web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server/-/wikis/bdd/Backup-and-restore-MongoDB)
|
|
|
Suivre [ce lien](https://forge.grandlyon.com/web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server/-/wikis/bdd/Backup-and-restore-MongoDB#restore)
|
|
|
|
|
|
### 8) Installer Elasticsearch
|
|
|
|
... | ... | @@ -57,7 +86,7 @@ Suivre [ce lien](https://forge.grandlyon.com/web-et-numerique/pamn_plateforme-de |
|
|
Depuis le dossier du backend, lancer les scripts suivant :
|
|
|
```sh
|
|
|
node ./scripts/init-db.js
|
|
|
node ./scripts/init-ghost.js
|
|
|
node ./scripts/init-ghost.js up
|
|
|
```
|
|
|
|
|
|
### 10) Lancer les environnements
|
... | ... | |