forked from fnproject/fn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (80 loc) · 1.58 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
version: '3'
services:
logstore:
hostname: logstore
image: minio/minio
ports:
- "9091:9000"
environment:
- MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=password
volumes:
- ./data/logstore:/data
command: server /data
db:
image: "mysql"
restart: always
ports:
- "3306:3306"
environment:
- "MYSQL_DATABASE=funcs"
- "MYSQL_ROOT_PASSWORD=root"
volumes:
- ./data/mysql:/var/lib/mysql
mq:
image: "redis"
restart: always
ports:
- "6379:6379"
fnserver:
restart: always
depends_on:
- mq
- db
- logstore
build: .
ports:
- "8080:8080"
links:
- "db"
- "mq"
- "logstore"
environment:
FN_DB_URL: "mysql://root:root@tcp(db:3306)/funcs"
FN_MQ_URL: "redis://mq:6379/"
FN_LOGSTORE_URL: "s3://admin:password@logstore:9000/us-east-1/fnlogs"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
grafana:
image: grafana/grafana
restart: always
ports:
- "3000:3000"
links:
- fnserver
- prometheus
depends_on:
- fnserver
- prometheus
prometheus:
image: prom/prometheus
restart: always
depends_on:
- fnserver
ports:
- "9090:9090"
links:
- fnserver
volumes:
- ./examples/grafana/prometheus.yml:/etc/prometheus/prometheus.yml
fnserver-ui:
depends_on:
- fnserver
image: fnproject/ui
restart: always
ports:
- "4000:4000"
links:
- "fnserver"
environment:
- FN_API_URL=http://fnserver:8080