-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.04 KB
/
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
45
46
47
48
49
50
51
52
53
version: "3.8"
services:
myca:
container_name: myca
build:
context: .
dockerfile: Dockerfile.CA
hostname: myca
volumes:
- "./mkcert/:/root/"
tty: true
stdin_open: true
networks:
custom-network:
ipv4_address: 192.168.1.4
server:
container_name: server
build:
context: .
dockerfile: Dockerfile.server
ports:
- 443:443
volumes:
- ./captured/server:/captured/server
- ./server/cert:/server/cert
networks:
custom-network:
ipv4_address: 192.168.1.3
client:
container_name: client
build:
context: .
dockerfile: Dockerfile.client
ports:
- 8081:8081
volumes:
- ./client/cert:/client/cert
networks:
custom-network:
ipv4_address: 192.168.1.2
# https://docs.docker.com/compose/compose-file/06-networks/
networks:
custom-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1