better installation instructions + fix missing volume in docker-compose

This commit is contained in:
nobohan 2023-07-12 09:39:40 +02:00
parent f02ad64ac1
commit af3310baff
2 changed files with 14 additions and 30 deletions

View File

@ -31,10 +31,12 @@ $ docker-compose exec db psql -d -U postgres -d referentielsdb -c "CREATE EXTENS
### Build the other containers ### Build the other containers
``` ```
$ docker-compose up $ docker-compose up
``` ```
At this stage, you still have to install Taxhub and compile the front to see the app running!
### Compile the front ### Compile the front
``` ```
@ -42,30 +44,21 @@ $ docker-compose run --rm citizen-front npm install
$ docker-compose run --rm citizen-front npm run build:i18n-ssr $ docker-compose run --rm citizen-front npm run build:i18n-ssr
``` ```
### Starting ### Taxhub installation
For starting the application again, you may start the db container first
```
$ docker-compose up -d db
$ docker-compose up
```
## Misc.
### Taxhub
``` ```
$ docker-compose run taxhub bash install_db.sh $ docker-compose run taxhub bash install_db.sh
$ docker-compose up -d taxhub $ docker-compose up -d taxhub
``` ```
#### CREATION / Compiation du JS de Taxhub #### Compilation du JS de Taxhub
##### Mise à jour de nppm. This is probably not needed as we don't use Taxhub.
##### Mise à jour de npm
``` ```
$ docker-compose exec -u root taxhub bash $ docker-compose exec -u root taxhub bash
taxhub $ npm install npm@latest -g # mise à jour de npm taxhub $ npm install npm@latest -g
``` ```
#### Compilation du code #### Compilation du code
@ -77,21 +70,12 @@ taxhub $ cp app/constants.js.sample app/constants.js
taxhub $ npm install taxhub $ npm install
``` ```
### Starting
### Citizen-front For starting the application again, you may start the db container first
``` ```
$ docker-compose run --rm citizen-front npm install $ docker-compose up -d db
$ docker-compose run --rm citizen-front npm run build:i18n-ssr $ docker-compose up
$ docker-compose up -d citizen-front
```
### Citizen-back
```
docker-compose up -d citizen-front
``` ```
### nginx ### nginx

View File

@ -76,8 +76,8 @@ services:
context: ./nginx context: ./nginx
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
image: registry.gitlab.com/champs-libres/geonature-citizen/nginx image: registry.gitlab.com/champs-libres/geonature-citizen/nginx
# volumes: volumes:
# - ./nginx/default.conf:/etc/nginx/conf.d/default.conf - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on: depends_on:
- "media" - "media"
- "citizen-front" - "citizen-front"