Skip to content

Commit

Permalink
start bamboo-build-agent after bamboo is healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
reschandreas committed Aug 17, 2023
1 parent c9ee1a3 commit 809f4a4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker/atlassian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
image: ghcr.io/ls1intum/artemis-jira:9.4.3
pull_policy: always
volumes:
- artemis-jira-data:/var/atlassian/application-data/jira
- artemis-jira-data:/var/atlassian/application-data/jira
ports:
- "8081:8080"
# expose the port to make it reachable docker internally even if the external port mapping changes
Expand Down Expand Up @@ -57,6 +57,12 @@ services:
- "8085"
networks:
- artemis
healthcheck:
test: curl -f http://localhost:8085/rest/api/latest/server | grep "<state>RUNNING</state>"
interval: 10s
timeout: 5s
start_period: 40s
retries: 120 # = 20 minutes startup time during setup

bamboo-build-agent:
container_name: artemis-bamboo-build-agent
Expand All @@ -74,6 +80,9 @@ services:
BAMBOO_SERVER: "http://bamboo:8085"
networks:
- artemis
depends_on:
bamboo:
condition: service_healthy

networks:
artemis:
Expand Down

0 comments on commit 809f4a4

Please sign in to comment.