# sablier-example ``` docker compose create docker compose up -d sablier proxy curl http://localhost:8080/whoami; echo -e "\n等待启动完成"; sleep 3; curl http://localhost:8080/whoami; ``` ```log root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# docker compose create [+] Creating 5/4 ✔ Network sablier-example_default Created 0.1s ✔ Container sablier-example-proxy-1 Created 0.1s ✔ Container sablier-example-whoami-1 Created 0.1s ✔ Container sablier-example-sablier-1 Created 0.1s ! whoami The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# docker compose up -d sablier proxy [+] Running 2/2 ✔ Container sablier-example-proxy-1 Started 0.3s ✔ Container sablier-example-sablier-1 Started 0.3s root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# curl http://localhost:8080/whoami; echo -e "\n等待启动完成"; sleep 3; curl http://localhost:8080/whoami; Sablier
Starting My Whoami Service...
等待启动完成 Hostname: 15dc096e1bcf IP: 127.0.0.1 IP: ::1 IP: 172.20.0.4 RemoteAddr: 172.20.0.3:39000 GET /whoami HTTP/1.1 Host: localhost:8080 User-Agent: curl/7.88.1 Accept: */* Accept-Encoding: gzip X-Forwarded-For: 172.20.0.1 X-Forwarded-Host: localhost:8080 X-Forwarded-Proto: http root@Airoli-Maharashtra-IN-150-230:~/_docker-stacks/sablier-example# ```