Skip to content

Commit

Permalink
set default value for TAG param
Browse files Browse the repository at this point in the history
  • Loading branch information
fatemeh-i committed Apr 6, 2024
1 parent 212cbbc commit 7568e16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker-compose-otc.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ version: '3.8'
services:

postgres-opex:
image: ghcr.io/opexdev/postgres-opex:${TAG:otc-pr}
image: ghcr.io/opexdev/postgres-opex:${TAG:-otc-pr}
build: docker-images/postgres
wallet:
image: ghcr.io/opexdev/wallet:${TAG:otc-pr}
image: ghcr.io/opexdev/wallet:${TAG:-otc-pr}
build: wallet/wallet-app
vault:
image: ghcr.io/opexdev/vault-opex:${TAG:otc-pr}
image: ghcr.io/opexdev/vault-opex:${TAG:-otc-pr}
build: docker-images/vault
bc-gateway:
image: ghcr.io/opexdev/bc-gateway:${TAG:otc-pr}
image: ghcr.io/opexdev/bc-gateway:${TAG:-otc-pr}
build: bc-gateway/bc-gateway-app
8 changes: 4 additions & 4 deletions docker-compose-otc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
x-postgres-db: &postgres-db
image: ghcr.io/opexdev/postgres-opex:${TAG:otc-pr}
image: ghcr.io/opexdev/postgres-opex:${TAG:-otc-pr}
environment:
- POSTGRES_USER=${DB_USER:-opex}
- POSTGRES_PASSWORD=${DB_PASS:-hiopex}
Expand All @@ -20,7 +20,7 @@ services:
- wallet-data:/var/lib/postgresql/data/

wallet:
image: ghcr.io/opexdev/wallet:${TAG:otc-pr}
image: ghcr.io/opexdev/wallet:${TAG:-otc-pr}
environment:
- JAVA_OPTS=-Xmx256m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
- KAFKA_IP_PORT=kafka-1:29092,kafka-2:29092,kafka-3:29092
Expand Down Expand Up @@ -52,7 +52,7 @@ services:
restart_policy:
condition: on-failure
vault:
image: ghcr.io/opexdev/vault-opex:${TAG:otc-pr}
image: ghcr.io/opexdev/vault-opex:${TAG:-otc-pr}
volumes:
- vault-data:/vault/file
environment:
Expand All @@ -78,7 +78,7 @@ services:
networks:
- otc-network
bc-gateway:
image: ghcr.io/opexdev/bc-gateway:${TAG:otc-pr}
image: ghcr.io/opexdev/bc-gateway:${TAG:-otc-pr}
environment:
- JAVA_OPTS=-Xmx256m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
- CONSUL_HOST=consul
Expand Down

0 comments on commit 7568e16

Please sign in to comment.