Skip to content

Commit

Permalink
chore: set up compose profiles for docker service
Browse files Browse the repository at this point in the history
# Conflicts:
#	docker-compose/.env
  • Loading branch information
mikeplotean committed Oct 8, 2024
1 parent 030616b commit 8b09895
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ MSSQL_DB_PORT=1433
#sqlite | postgres | mssql
DATABASE_ENGINE=postgres
VERSION_TAG=0.8.0
COMPOSE_PROFILES=$DATABASE_ENGINE
#identity | identity,tse | all
COMPOSE_PROFILES=identity
30 changes: 29 additions & 1 deletion docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
services:
wallet-api:
image: docker.io/waltid/wallet-api:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -22,6 +25,9 @@ services:
issuer-api:
platform: linux/x86_64
image: docker.io/waltid/issuer-api:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -36,6 +42,9 @@ services:
verifier-api:
platform: linux/x86_64
image: docker.io/waltid/verifier-api:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -49,6 +58,9 @@ services:

waltid-demo-wallet:
image: docker.io/waltid/waltid-demo-wallet:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -63,6 +75,9 @@ services:

waltid-dev-wallet:
image: docker.io/waltid/waltid-dev-wallet:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -78,6 +93,9 @@ services:
web-portal:
platform: linux/x86_64
image: docker.io/waltid/portal:${VERSION_TAG:-latest}
profiles:
- identity
- all
pull_policy: always
build:
context: ../
Expand All @@ -94,6 +112,9 @@ services:
vc-repo:
platform: linux/x86_64
image: docker.io/waltid/vc-repository:latest
profiles:
- identity
- all
pull_policy: always
depends_on:
- caddy
Expand All @@ -103,7 +124,8 @@ services:
postgres:
image: postgres
profiles:
- postgres
- identity
- all
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-U", "$DB_USERNAME" ]
interval: 5s
Expand All @@ -121,6 +143,9 @@ services:

vault:
image: hashicorp/vault:latest
profiles:
- tse
- all
container_name: vault
healthcheck:
test: ["CMD-SHELL", "vault status || exit 1"]
Expand All @@ -140,6 +165,9 @@ services:

vault-init:
image: hashicorp/vault:latest
profiles:
- tse
- all
container_name: vault-init
environment:
VAULT_DEV_ROOT_TOKEN_ID: "dev-only-token"
Expand Down

0 comments on commit 8b09895

Please sign in to comment.