-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 950 Bytes
/
docker-compose.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "3.3"
services:
httpbin:
image: huaxlin/httpbin
ports:
- 5080:80
reverse_proxy:
image: 'reverse-proxy-demo:${TAG-latest}'
ports:
- "2890:2890"
volumes:
- $PWD:/code
environment:
- PROXY_PASS_BASE_URL=http://httpbin:80/
depends_on:
- httpbin
# TODO: command: server-start-reload.sh
command: /code/server-start.sh -p 2890
build:
context: ./
dockerfile: reverse-proxy.Dockerfile
test_httpbin:
image: 'test-reverse-proxy-demo'
environment:
- TEST_BASE_URL=http://reverse_proxy:2890
depends_on:
- reverse_proxy
build:
context: ./
dockerfile: test.Dockerfile
web:
image: nginx:1.25.0-bullseye
ports:
- 6080:80
volumes:
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
environment:
- TZ=Asia/Shanghai
depends_on:
- reverse_proxy
command: [nginx-debug, '-g', 'daemon off;']