1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00

tests: fix the json log test compose files

This commit is contained in:
Nicolas Duchon 2024-02-10 18:02:42 +01:00
parent de9809a9e5
commit 8aefce916f
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7
2 changed files with 34 additions and 28 deletions

View File

@ -1,15 +1,18 @@
web1: version: "2"
image: web
expose:
- "81"
environment:
WEB_PORTS: 81
VIRTUAL_HOST: nginx-proxy.test
sut: services:
container_name: sut web1:
image: nginxproxy/nginx-proxy:test image: web
volumes: expose:
- /var/run/docker.sock:/tmp/docker.sock:ro - "81"
environment: environment:
LOG_JSON: 1 WEB_PORTS: 81
VIRTUAL_HOST: nginx-proxy.test
sut:
container_name: sut
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
LOG_JSON: 1

View File

@ -1,15 +1,18 @@
web1: version: "2"
image: web
expose:
- "81"
environment:
WEB_PORTS: 81
VIRTUAL_HOST: nginx-proxy.test
sut: services:
container_name: sut web1:
image: nginxproxy/nginx-proxy:test image: web
volumes: expose:
- /var/run/docker.sock:/tmp/docker.sock:ro - "81"
environment: environment:
LOG_FORMAT: '{"time_local":"$$time_iso8601","remote_addr":"$$remote_addr","request":"$$request","upstream_addr":"$$upstream_addr"}' WEB_PORTS: 81
VIRTUAL_HOST: nginx-proxy.test
sut:
container_name: sut
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
LOG_FORMAT: '{"time_local":"$$time_iso8601","remote_addr":"$$remote_addr","request":"$$request","upstream_addr":"$$upstream_addr"}'