Use httpbin as docker compose service

Closes gh-184
This commit is contained in:
Moritz Halbritter
2023-07-20 14:02:01 +02:00
parent aa747649a2
commit bc7195d00d
15 changed files with 247 additions and 76 deletions

View File

@@ -1,7 +1,22 @@
version: '3'
services:
httpecho:
image: 'mhalbritter/http-echo:2'
httpbin:
image: 'mccutchen/go-httpbin:v2.10.0'
ports:
- '80'
- '443'
- '8080'
httpbin_tls:
image: 'mccutchen/go-httpbin:v2.10.0'
environment:
- 'PORT=8443'
- 'HTTPS_CERT_FILE=/server-certificate'
- 'HTTPS_KEY_FILE=/server-key'
configs:
- 'server-certificate'
- 'server-key'
ports:
- '8443'
configs:
server-certificate:
file: './server.crt'
server-key:
file: './server.key'