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
|
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
version: "3.7"
services:
go-restful-client:
image: golang:1.23-alpine
networks:
- example
command:
- "/bin/sh"
- "-c"
- "wget -O - http://go-restful-server:8080/users/123"
depends_on:
- go-restful-server
go-restful-server:
build:
dockerfile: $PWD/Dockerfile
context: ../../../../../..
ports:
- "8080:80"
command:
- "/bin/sh"
- "-c"
- "/go/bin/server"
networks:
- example
networks:
example:
|