-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
93 lines (93 loc) · 3.19 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.9'
services:
# ------------------------------------------
# --------- Redis and S3 services ! --------
# ------------------------------------------
redis:
image: 'redis:alpine'
ports:
- 6379:6379
minio:
image: minio/minio
ports:
- 9000:9000
environment:
MINIO_ACCESS_KEY: RANDOM_ACCESS_KEY_S3_TO_CHANGE_D2IUNWI1238921NW213
MINIO_SECRET_KEY: RANDOM_SECRET_KEY_S3_TO_CHANGE_1918CB2I2XN321K3JHS
entrypoint: sh
command: >
-c 'mkdir -p /export/hermes_s3_bucket/configs/config_id=1 && echo "{ \"blacklist\": [], \"config_name\": \"hello_world\", \"data_transformations\": [], \"do_not_modify_connection_header\": false, \"headers\": null, \"headers_freeze\": [], \"http2\": \"NO\", \"proxy\": null, \"site_blacklist_response\": \"\", \"ssl\": { \"ciphers\": null, \"verify_ssl\": false, \"version\": \"PROTOCOL_TLS\" }, \"waterfall_requests\": []}" >> /export/hermes_s3_bucket/configs/config_id=1/conf.json && cat /export/hermes_s3_bucket/configs/config_id=1/conf.json && /usr/bin/minio server /export'
# ------------------------------------------
# --------- MITM Service ! -----------------
# ------------------------------------------
proxy:
image: proxy
build:
context: .
target: hermes-backend-mitm
links:
- "minio:minio"
- "redis:redis"
environment:
REDIS_URL: redis
REDIS_PORT: 6379
S3_API_KEY_ID: RANDOM_ACCESS_KEY_S3_TO_CHANGE_D2IUNWI1238921NW213
S3_API_ACCESS_KEY: RANDOM_SECRET_KEY_S3_TO_CHANGE_1918CB2I2XN321K3JHS
S3_URL_ENDPOINT: http://minio:9000
S3_BUCKET: hermes_s3_bucket
PROXY_USERNAME: proxy_username
PROXY_PASSWORD: PVnkJazW2weJ6EcyZKgoZ7cNbckXVeGje4P
ports:
- 8080:8080
depends_on:
- redis
- minio
# ------------------------------------------
# --------- API Service ! -----------------
# ------------------------------------------
api:
image: api
build:
context: .
target: hermes-backend-api
links:
- "minio:minio"
- "redis:redis"
- "proxy:proxy"
environment:
REDIS_URL: redis
REDIS_PORT: 6379
S3_API_KEY_ID: RANDOM_ACCESS_KEY_S3_TO_CHANGE_D2IUNWI1238921NW213
S3_API_ACCESS_KEY: RANDOM_SECRET_KEY_S3_TO_CHANGE_1918CB2I2XN321K3JHS
S3_URL_ENDPOINT: http://minio:9000
S3_BUCKET: hermes_s3_bucket
MITM_TEST_URL: proxy
MITM_TEST_PORT: 8080
SECRET_KEY_APP: YvPpvrwaFMtrowYeUyc272LybhMfukW6Bn86ygQYzACGCCbiAqxvtA9KFf7tMRaREz2ACu
API_USERNAME: api_username
API_PASSWORD: 2C8fdpZwGAYtKwsfDVFLoqtGst2UFbxC2Er
PROXY_USERNAME: proxy_username
PROXY_PASSWORD: PVnkJazW2weJ6EcyZKgoZ7cNbckXVeGje4P
ports:
- 443:443
depends_on:
- redis
- minio
# ------------------------------------------
# --------- Web Service ! -----------------
# ------------------------------------------
webdev:
image: webdev
build:
context: .
target: hermes-frontend-webdev
links:
- "proxy:proxy"
- "api:api"
ports:
- 80:80
depends_on:
- redis
- minio
- api
- proxy