Skip to content

Commit

Permalink
chore(ci): docker-compose.yml - provisioned by terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
arrow-tf-github-repositories[bot] committed Oct 21, 2022
1 parent 8a6bcea commit 002e98a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
version: '3.6'
services:
web-server:
container_name: ${DOCKER_NAME}-example-server
container_name: ${PACKAGE_NAME}-run
image: ${PACKAGE_NAME}:latest
ports:
- ${HOST_PORT_REST}:${DOCKER_PORT_REST}
- ${HOST_PORT_GRPC}:${DOCKER_PORT_GRPC}
healthcheck:
test: ["CMD", "grpc_health_probe", "-addr", "localhost:${DOCKER_PORT_GRPC}"]
test: ["CMD", "wget", "--spider", "--no-verbose", "--tries=1", "http://localhost:${DOCKER_PORT_REST}/live"]
interval: 2s
timeout: 1s
retries: 3
Expand All @@ -19,7 +19,7 @@ services:
depends_on:
web-server:
condition: service_healthy
container_name: ${DOCKER_NAME}-example
container_name: ${PACKAGE_NAME}-example
image: ${RUST_IMAGE_NAME}:${RUST_IMAGE_TAG}
volumes:
- type: bind
Expand All @@ -29,7 +29,7 @@ services:
source: "${SOURCE_PATH}/.cargo/registry"
target: "/usr/local/cargo/registry"
environment:
- SERVER_HOSTNAME
- HOSTNAME
- SERVER_PORT_GRPC
- SERVER_PORT_REST
- EXAMPLE_TARGET
Expand Down

0 comments on commit 002e98a

Please sign in to comment.