Skip to content
Snippets Groups Projects
Commit 20b1d7ae authored by jurgenhaas's avatar jurgenhaas
Browse files

Experiment with templating

parent 09d8f6e7
No related branches found
No related tags found
No related merge requests found
version: '3.3'
name: datacore_DATACORE_PRJID_PLACEHOLDER_DATACORE_BRANCH_PLACEHOLDER
name: datacore_${CI_PROJECT_ID}_${CI_COMMIT_REF_NAME}
services:
app:
image: registry.lakedrops.com/docker/maven-build/maven
restart: unless-stopped
command: java -jar /app/datacore.jar --spring.profiles.active=DATACORE_PROFILE_PLACEHOLDER --assets.basic.path=/data/DATACORE_DATA_DIRECTORY_PLACEHOLDER/ --assets.real-estate.path=/data/DATACORE_DATA_DIRECTORY_PLACEHOLDER/ --assets.basic.json.path=/data/ --assets.basic.json.filename.prefix=basic-inventory --assets.real-estate.json.path=/data/ --assets.real-estate.json.filename.prefix=realestate-inventory --spring.datasource.url=jdbc:mysql://db/datacore?serverTimezone=UTC'&'useSSL=false --spring.datasource.username=datacore --spring.datasource.password=datacore --server.port=4100 --alerta.host=alerta --alerta.port=20202
command: java -jar /app/datacore.jar --spring.profiles.active=${DATACORE_PROFILE} --assets.basic.path=/data/${DATACORE_DATA_DIRECTORY}/ --assets.real-estate.path=/data/${DATACORE_DATA_DIRECTORY}/ --assets.basic.json.path=/data/ --assets.basic.json.filename.prefix=basic-inventory --assets.real-estate.json.path=/data/ --assets.real-estate.json.filename.prefix=realestate-inventory --spring.datasource.url=jdbc:mysql://db/datacore?serverTimezone=UTC'&'useSSL=false --spring.datasource.username=datacore --spring.datasource.password=datacore --server.port=4100 --alerta.host=alerta --alerta.port=20202
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/app:/app
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/data:/data
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/app:/app
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/data:/data
depends_on:
- db
db:
......@@ -25,8 +25,8 @@ services:
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/db:/var/lib/mysql
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/dbbackup:/var/backups/mysql
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/db:/var/lib/mysql
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/dbbackup:/var/backups/mysql
cron:
image: mcuadros/ofelia:latest
......@@ -35,7 +35,7 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/crontabs/jobs.ini:/etc/ofelia/config.ini
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/crontabs/jobs.ini:/etc/ofelia/config.ini
borgmatic:
image: b3vis/borgmatic:base-1.2.0-1.6.0
......@@ -44,12 +44,12 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /usr/local/bin/alertalerta.py:/usr/local/bin/alertalerta.py
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/dbbackup:/mnt/source:ro
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/borgconfig:/etc/borgmatic.d/
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/borgdata/files:/mnt/borg-repository
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/borgdata/config:/root/.config/borg
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/borgdata/ssh:/root/.ssh
- /apps/datacore/DATACORE_PRJID_PLACEHOLDER/DATACORE_BRANCH_PLACEHOLDER/borgdata/cache:/root/.cache/borg
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/dbbackup:/mnt/source:ro
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/borgconfig:/etc/borgmatic.d/
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/borgdata/files:/mnt/borg-repository
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/borgdata/config:/root/.config/borg
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/borgdata/ssh:/root/.ssh
- /apps/datacore/${CI_PROJECT_ID}/${CI_COMMIT_REF_NAME}/borgdata/cache:/root/.cache/borg
env_file: ./borgconfig/.env
alerta:
......@@ -57,7 +57,7 @@ services:
restart: unless-stopped
tty: true
environment:
- ALERTA_API_KEY=ALERTA_API_KEY_PLACEHOLDER
- ALERTA_ENVIRONMENT=ALERTA_ENVIRONMENT_PLACEHOLDER
- ALERTA_PROJECT_ID=ALERTA_PROJECT_ID_PLACEHOLDER
- ALERTA_API_KEY=${ALERTA_API_KEY}
- ALERTA_ENVIRONMENT=${ALERTA_ENVIRONMENT}
- ALERTA_PROJECT_ID=${ALERTA_PROJECT_ID}
- PORT=20202
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