forked from sodalabsab/cicdcourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
services:
cloud-run-hub:
build:
context: ./cloud-run-hub
dockerfile: Dockerfile
container_name: cloud-run-hub
ports:
- "8080:8080" # Expose port 8080 to the host
healthcheck:
test: "curl -f http://localhost:8080"
interval: 15s
timeout: 1m
retries: 2
networks:
- cloud-run-network
cloud-run-pipeline-demo:
build:
context: ./cloud-run-pipeline-demo
dockerfile: Dockerfile
container_name: cloud-run-pipeline-demo
ports:
- "8081:8081" # Expose port 8080 in container to 8081 on the host
networks:
- cloud-run-network
depends_on:
cloud-run-hub:
condition: service_healthy
environment:
- HUB_ADDRESS=http://cloud-run-hub:8080
- GITHUB_REPOSITORY_OWNER=Local-owner
- DOCKER_IMAGE_TAG=Local-image
networks:
cloud-run-network:
driver: bridge