-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.test.yml
More file actions
30 lines (27 loc) · 850 Bytes
/
compose.test.yml
File metadata and controls
30 lines (27 loc) · 850 Bytes
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
services:
# Point builder's resolver to test-dns + configure test rules
builder:
environment:
- EXTERNAL_RESOLVER=10.200.0.53
- ALLOWED_HTTPS_RULES=allowed.example.com:443 allowed.example.com:8443 *.wildcard.example.com:443 *.wildcard.example.com:8443
- ALLOWED_HTTP_RULES=allowed.example.com:80 allowed.example.com:8080 *.wildcard.example.com:80 *.wildcard.example.com:8080
networks:
default:
test-net:
# Test HTTP server (with self-signed certificate)
test-server:
build: test/test-server
networks:
test-net:
ipv4_address: 10.200.0.100
# DNS used by builder (resolves all domains to test-server)
test-dns:
build: test/test-dns
networks:
test-net:
ipv4_address: 10.200.0.53
networks:
test-net:
ipam:
config:
- subnet: 10.200.0.0/24