-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (79 loc) · 2.75 KB
/
docker-compose.yml
File metadata and controls
79 lines (79 loc) · 2.75 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
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
services:
mysql.local:
image: 897413463132.dkr.ecr.us-east-1.amazonaws.com/mysql:8.0.35-debian
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=gregor
ports:
- "3306"
tmpfs: /var/lib/mysql
command: ["--innodb_print_all_deadlocks=1", "--max_connections=1000"]
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-psecret",
]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
sqsd.local:
image: 897413463132.dkr.ecr.us-east-1.amazonaws.com/sqsd
restart: unless-stopped
ports:
- "9324"
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 9324 || exit 1"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
kbweb.local:
image: 897413463132.dkr.ecr.us-east-1.amazonaws.com/kbweb
ports:
- "3000:3000"
- "9911:9911"
- "13009:13009"
- "13010:13010"
- "13037:13037"
- "13047:13047"
depends_on:
mysql.local:
condition: service_healthy
sqsd.local:
condition: service_healthy
entrypoint: ["run/startup_for_container.sh"]
environment:
- KEYBASE_RUN_MODE=devel
- MYSQL_HOST=mysql.local
- GREGOR_BIND_ADDRESS=0.0.0.0:9911
- MYSQL_DSN=root:secret@tcp(mysql.local:3306)/keybase
- CHAT_MYSQL_DSN=root:secret@tcp(mysql.local:3306)/keybase
- CHAT_READER_MYSQL_DSN=root:secret@tcp(mysql.local:3306)/keybase
- INSECURE_TLS_MODE=1
- GREGOR_TLFAUTH_PRIVATE_SIGNING_KEY=e20589b8cd66d447aaee44b587305bd521f34f3085709b32b4e3bd479b20253e59ea153c88a8ea524d39e0ae58fa195749214b38a28fdb4229ba3390b2d33e86
- GREGOR_TLFAUTH_PUBLIC_SIGNING_KEY=012059ea153c88a8ea524d39e0ae58fa195749214b38a28fdb4229ba3390b2d33e860a
- CHAT_S3_BUCKET=test
- CHAT_S3_ACCESS_KEY=test
- CHAT_S3_SECRET_KEY=test
- S3_SECRETS_ACCESS_KEY_ID
- S3_SECRETS_SECRET_ACCESS_KEY
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/_/api/1.0/ping.json"]
interval: 5s
timeout: 3s
retries: 20
start_period: 60s
logging:
driver: json-file
options:
max-size: 50m
max-file: "2"