-
Notifications
You must be signed in to change notification settings - Fork 6
/
sample.docker-compose.yml
62 lines (62 loc) · 1.83 KB
/
sample.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
version: '3'
services:
mysql:
image: mysql:5.7
command: "--explicit_defaults_for_timestamp"
volumes:
- ./tmp/db:/var/lib/mysql
restart: always
environment:
MYSQL_USER: UserName
MYSQL_DATABASE: DatabaseName
MYSQL_PASSWORD: Password
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
key-retrieval:
build:
context: .
args:
branch: docker-compose
revision: docker-compose
component: key-retrieval
ports:
- "8001:8001"
cap_drop:
- ALL
depends_on:
- mysql
restart: always
environment:
# You can use the main.go inside cmd/generate-ecdsa-private-key to generate this
DATABASE_URL: UserName:Password@tcp(mysql)/DatabaseName
ECDSA_KEY: 30770201010420a6885a310b694b7bb4ba985459de1e79446dddcd1247c62ece925402b362a110a00a06082a8648ce3d030107a1440342000403eb64f714c4b4ed394331c26c31b7ce7156d00fb28982ad2679a87eaa1a3869802fbeb1d7ee28002762921929c3f7603672d535fcac3d24d57afbb4e2d97f5a
RETRIEVE_HMAC_KEY: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
KEY_CLAIM_TOKEN: thisisaverylongtoken=428
TRACER_PROVIDER: ""
METRIC_PROVIDER: stdout
METRICS_USERNAME: 1234567890
METRICS_PASSWORD: 1234567890
key-submission:
build:
context: .
args:
branch: docker-compose
revision: docker-compose
component: key-submission
ports:
- "8000:8000"
cap_drop:
- ALL
ulimits:
nofile:
soft: 100000
hard: 100000
depends_on:
- mysql
restart: always
environment:
DATABASE_URL: UserName:Password@tcp(mysql)/DatabaseName
KEY_CLAIM_TOKEN: thisisaverylongtoken=428
TRACER_PROVIDER: ""
METRIC_PROVIDER: stdout
METRICS_USERNAME: 1234567890
METRICS_PASSWORD: 1234567890