create and use APP_NAME, APP_GROUP in docker compose files

This commit is contained in:
Adam 2022-10-04 22:27:43 +02:00
parent 3758906bb8
commit 0044f0cb98
10 changed files with 26 additions and 14 deletions

View file

@ -2,11 +2,13 @@ version: "3.9"
services:
kafka-pipe:
image: ${REGISTRY_HOST}/dev.adamko.kafkatorio/kafka-pipe/${KAFKATORIO_VERSION}
container_name: "kafka-pipe"
image: ${REGISTRY_HOST}/${APP_GROUP}/${APP_NAME}:${KAFKATORIO_VERSION}
container_name: ${APP_NAME}
build:
dockerfile: "kafka-pipe.Dockerfile"
context: "."
args:
APP_NAME: ${APP_NAME}
restart: "unless-stopped"
privileged: true
networks: