Skip to content
Snippets Groups Projects
Commit 227cff5f authored by Joost Hemmen's avatar Joost Hemmen :basketball:
Browse files

Merge branch 'main' into '79-persistent-mqtt-messages'

# Conflicts:
#   docker-compose.yml
parents b78446f9 2efeff76
No related branches found
No related tags found
1 merge request!132Resolve "persistent MQTT messages"
Pipeline #345241 passed
......@@ -57,7 +57,7 @@ CV_DB_USER=postgres
CV_DB_PASSWORD=postgres
CV_URL=https://sms-cv.helmholtz.cloud/sms/cv/
# can be either 'db' or 'api'
CV_ACCESS_TYPE=api
CV_ACCESS_TYPE=db
S3MAP_POSTGRES_HOST=database
S3MAP_POSTGRES_PORT=5432
......
......@@ -34,9 +34,17 @@ issued by
## 2. Run all the services and have fun
```bash
docker-compose up -d
```
- To start the services:
- execute `./up.sh`
- To stop the services:
- execute `./down.sh`
- To start the services including the `docker-compose-dev.yml` (see chapter "Extend or override docker-compose" for more information)
- execute `./up-with-dev.sh`
- To stop the services including the `docker-compose-dev.yml`
- execute `./down-with-dev.sh`
- To execute any docker compose command use either
- `./dc.sh` <command>
- `./dc-with-dev.sh` <command>
It will take some seconds until everything is up.
......
......@@ -22,6 +22,7 @@ RUN chmod gu+rw /var/run \
USER ${UID}
ENV PGSSLROOTCERT=/etc/ssl/certs/ca-certificates.crt
ENV STDOUT=/proc/1/fd/1
ENV STDERR=/proc/1/fd/2
......
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
docker compose -f "${DIR_SCRIPT}/docker-compose.yml" -f "${DIR_SCRIPT}/docker-compose-dev.yml" $@
\ No newline at end of file
dc.sh 0 → 100755
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
docker compose -f "${DIR_SCRIPT}/docker-compose.yml" $@
\ No newline at end of file
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR_SCRIPT}/dc-with-dev.sh" down
\ No newline at end of file
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR_SCRIPT}/dc.sh" down
\ No newline at end of file
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR_SCRIPT}/dc-with-dev.sh" up -d
\ No newline at end of file
up.sh 0 → 100755
#!/usr/bin/env bash
DIR_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR_SCRIPT}/dc.sh" up -d
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment