Skip to content

Commit

Permalink
Use tagged versions in compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 23, 2024
1 parent 3c34473 commit 1147f94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ replace = version="{new_version}"
[bumpversion:file:yente/settings.py]
search = VERSION = "{current_version}"
replace = VERSION = "{new_version}"

[bumpversion:file:docker-compose.yml]
search = ghcr.io/opensanctions/yente:{current_version}
replace = ghcr.io/opensanctions/yente:{new_version}

[bumpversion:file:docker-compose.opensearch.yml]
search = ghcr.io/opensanctions/yente:{current_version}
replace = ghcr.io/opensanctions/yente:{new_version}
7 changes: 3 additions & 4 deletions docker-compose.opensearch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# version: "3.9"
services:
index:
image: opensearchproject/opensearch:2.15.0
Expand All @@ -20,15 +19,15 @@ services:
soft: -1
hard: -1
volumes:
- index-ops-data:/usr/share/opensearch/data
- opensearch-data:/usr/share/opensearch/data
deploy:
placement:
max_replicas_per_node: 1
restart_policy:
condition: on-failure

app:
image: ghcr.io/opensanctions/yente:latest
image: ghcr.io/opensanctions/yente:3.8.10
depends_on:
- index
ports:
Expand Down Expand Up @@ -60,4 +59,4 @@ services:
window: 120s

volumes:
index-ops-data: null
opensearch-data: null
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# version: "3.9"
services:
index:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
Expand Down Expand Up @@ -27,7 +26,7 @@ services:
condition: on-failure

app:
image: ghcr.io/opensanctions/yente:latest
image: ghcr.io/opensanctions/yente:3.8.10
depends_on:
- index
ports:
Expand Down

0 comments on commit 1147f94

Please sign in to comment.