-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mise à jour de la documentation d'installation (#1033)
* Update of install doc * added phpmyadmin in docker-compose.yml * removed most doc related to install without docker * separated install doc as local and server * fixed errors * removed travis * fix format
- Loading branch information
1 parent
511bfe0
commit 653e237
Showing
7 changed files
with
69 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Installation locale | ||
|
||
## Utilisation via docker-compose | ||
|
||
### Prérequis | ||
|
||
* docker | ||
* docker-compose | ||
|
||
### Lancer l'instance | ||
|
||
Lancer le docker-compose pour deployer un conteneur de base de données (mariadb) et un conteneur symfony | ||
|
||
```shell | ||
docker-compose up | ||
``` | ||
|
||
Ajouter `127.0.0.1 membres.yourcoop.local` au fichier _/etc/hosts_. | ||
|
||
Note: le premier lancement du docker-compose peut être long (~30s) du fait de plusieurs étapes : initialisation de la db, creation du fichier parameters.yml, ... La ligne `PHP 7.4.27 Development Server (http://0.0.0.0:8000) started` indique que le deploiement de l'espace membre est fonctionnel. La base de données est montée dans docker avec un volume, elle est donc persistente. Le fichier _parameters.yml_ doit être modifié suivant la configuration voulue. | ||
|
||
Le site est en ligne à l'adresse [http://membres.yourcoop.local:8000](http://membres.yourcoop.local:8000). | ||
|
||
Pour créer l'utilisateur super admin, visiter : | ||
[http://membres.yourcoop.local:8000/user/install_admin](http://membres.yourcoop.local:8000/user/install_admin). | ||
|
||
Vous pouvez vous connecter avec l'utilisateur super admin : | ||
**admin** / **password**. | ||
|
||
|
||
|
||
### Importer un dump de la base de données | ||
|
||
#### Supprimer la base de données existante et la recréer | ||
```shell | ||
docker compose exec database mariadb -uroot -psecret -e 'DROP DATABASE IF EXISTS symfony; CREATE DATABASE IF NOT EXISTS symfony;' | ||
``` | ||
|
||
#### Importer le dump | ||
```shell | ||
docker compose exec database mariadb -uroot -psecret symfony < espace_membres.sql | ||
``` | ||
|
||
Vous pouvez aussi le faire directement sur phpmyadmin : [http://localhost:8080](http://localhost:8080) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters