-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (45 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
53 lines (45 loc) · 1.18 KB
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
45
46
47
48
49
50
51
version: "3.3"
services:
h2o:
build: ./testdata/h2o
ports:
- "8081:8081/tcp"
- "8444:8444/tcp"
- "8444:8444/udp"
networks:
intra:
ipv4_address: 172.25.0.3
# Using Volumes here instead of COPYing in the Dockerfile allows us to make changes to configuration files and/or
# certs without needing to re-build the container image
volumes:
- type: bind
source: ./testdata/h2o/connect.conf
target: /etc/h2o/connect.conf
- type: bind
source: ./testdata/h2o/server.key
target: /etc/h2o/server.key
- type: bind
source: ./testdata/h2o/server.crt
target: /etc/h2o/server.crt
echo-server:
image: mendhak/http-https-echo:35
networks:
intra:
ipv4_address: 172.25.0.4
ports:
- "8080:8080/tcp"
- "8443:8443/tcp"
volumes:
- type: bind
source: ./testdata/h2o/server.key
target: /app/privkey.pem
- type: bind
source: ./testdata/h2o/server.crt
target: /app/fullchain.pem
networks:
intra:
ipam:
config:
- subnet: 172.25.0.0/24
ip_range: 172.25.0.0/24
gateway: 172.25.0.1