-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.23 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
54
55
56
57
58
59
60
version: '3'
services:
https-server:
build:
context: ./https-server/
args:
http_proxy:
https_proxy:
volumes:
- root_key:/root/.root-key
- ./.generated:/root/.generated
- ./.provided-root-ca:/root/.provided-root-ca
env_file: ./.env
ports:
- "${FORWARDING_SERVER_BIND_IP:-127.9.9.9}:${TARGET_PORT:-443}:443"
restart: always
logging:
driver: "json-file"
options:
max-size: "10mb"
max-file: "3"
http-proxy-server:
build:
context: ./http-proxy-server/
args:
http_proxy:
https_proxy:
depends_on:
- https-server
environment:
FORWARDING_CONTAINER: "https-server"
env_file: ./.env
ports:
- "${HTTP_PROXY_SERVER_BIND_IP_PORT:-127.0.0.1:3128}:3128"
restart: always
logging:
driver: "json-file"
options:
max-size: "10mb"
max-file: "3"
root-ca:
profiles:
- generate-root
build:
context: ./root-ca/
args:
http_proxy:
https_proxy:
volumes:
- root_key:/root/.root-key
- ./.generated:/root/.generated
environment:
ROOT_CERT_COMMON_NAME:
ROOT_CERT_LIFETIME_DAYS:
volumes:
root_key: