-
Notifications
You must be signed in to change notification settings - Fork 2
/
load-compose.yml
73 lines (70 loc) · 1.82 KB
/
load-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
version: '3.8'
services:
lookup:
container_name: lookup
image: madflojo/tarmac:unstable
ports:
- 80:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/ready"]
interval: 10s
timeout: 5s
retries: 3
environment:
- "APP_ENABLE_TLS=false"
- "APP_LISTEN_ADDR=0.0.0.0:8080"
- "APP_DEBUG=false"
- "APP_TRACE=false"
- "APP_WASM_FUNCTION_CONFIG=/config/tarmac-lookup.json"
- "APP_ENABLE_SQL=true"
- "APP_SQL_TYPE=mysql"
- "APP_SQL_DSN=root:example@tcp(mysql:3306)/example"
- "APP_ENABLE_KVSTORE=true"
- "APP_KVSTORE_TYPE=in-memory"
volumes:
- "./config:/config"
- "./functions/build:/functions"
depends_on:
- mysql
data-manager:
container_name: data-manager
image: madflojo/tarmac:unstable
ports:
- 8080:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/ready"]
interval: 10s
timeout: 5s
retries: 3
environment:
- "APP_ENABLE_TLS=false"
- "APP_LISTEN_ADDR=0.0.0.0:8080"
- "APP_DEBUG=false"
- "APP_TRACE=false"
- "APP_WASM_FUNCTION_CONFIG=/config/tarmac-data-manager.json"
- "APP_ENABLE_SQL=true"
- "APP_SQL_TYPE=mysql"
- "APP_SQL_DSN=root:example@tcp(mysql:3306)/example"
- "APP_ENABLE_KVSTORE=false"
volumes:
- "./config:/config"
- "./functions/build:/functions"
depends_on:
- mysql
# Dependencies
mysql:
container_name: mysql
image: bitnami/mysql:latest
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 3
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: example
ports:
- 3306:3306
volumes:
prom_data: