-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (66 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
75 lines (66 loc) · 1.47 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
version: "3"
services:
apisix:
image: apache/apisix:3.9.1-debian
volumes:
- ./scripts/apisix_conf.yaml:/usr/local/apisix/conf/config.yaml:ro
depends_on:
- etcd
ports:
- "9080:9080/tcp"
- "9090:9090/tcp"
- "9091:9091/tcp"
- "9180:9180/tcp"
networks:
apisix:
etcd:
image: rancher/coreos-etcd:v3.4.15-arm64
user: root
environment:
ETCD_UNSUPPORTED_ARCH: "arm64"
ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_DATA_DIR: "/etcd-data"
networks:
apisix:
web-server-1:
image: nginx:alpine
networks:
apisix:
web-server-2:
image: nginx:alpine
networks:
apisix:
redis-1:
image: redis:alpine
networks:
apisix:
apisix-standalone:
image: apache/apisix:3.9.1-debian
volumes:
- ./scripts/apisix_standalone:/usr/local/apisix/conf
- ./plugin_w/pkg:/wasm_plugin
ports:
- "4100:9180/tcp"
- "4000:9080/tcp"
networks:
apisix:
prometheus:
image: prom/prometheus:v2.36.2
volumes:
- ./scripts/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command:
- "--config.file=/etc/prometheus/prometheus.yml"
networks:
- apisix
grafana:
image: grafana/grafana:8.3.3
ports:
- 7050:3000
networks:
- apisix
networks:
apisix:
driver: bridge