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
```
$ docker-compose up
```
At this stage, you still have to install Taxhub and compile the front to see the app running!
### 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
```
### Starting
For starting the application again, you may start the db container first
```
$ docker-compose up -d db
$ docker-compose up
```
## Misc.
### Taxhub
### Taxhub installation
```
$ docker-compose run taxhub bash install_db.sh
$ 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
taxhub $ npm install npm@latest -g # mise à jour de npm
taxhub $ npm install npm@latest -g
```
#### Compilation du code
@ -77,21 +70,12 @@ taxhub $ cp app/constants.js.sample app/constants.js
taxhub $ npm install
```
### Citizen-front
### Starting
For starting the application again, you may start the db container first
```
$ docker-compose run --rm citizen-front npm install
$ docker-compose run --rm citizen-front npm run build:i18n-ssr
$ docker-compose up -d citizen-front
```
### Citizen-back
```
docker-compose up -d citizen-front
$ docker-compose up -d db
$ docker-compose up
```
### nginx

View File

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