-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.12 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
version: '3.9'
name: tyk-api-gateway
services:
endpoint_1:
container_name: endpoint1
build: ./endpoint/
ports:
- 5001:3001
environment:
- ENDPOINT_VERSION=1
- PORT_NUMBER=3001
networks:
- tyk
endpoint_2:
container_name: endpoint2
build: ./endpoint/
ports:
- 5002:3002
environment:
- ENDPOINT_VERSION=2
- PORT_NUMBER=3002
networks:
- tyk
endpoint_3:
container_name: endpoint3
build: ./endpoint/
ports:
- 5003:3003
environment:
- ENDPOINT_VERSION=3
- PORT_NUMBER=3003
networks:
- tyk
tyk-redis:
container_name: tyk-redis
image: redis:7.0.2-alpine
ports:
- 127.0.0.1:6379:6379
networks:
- tyk
tyk-gateway:
container_name: tyk-gateway
image: docker.tyk.io/tyk-gateway/tyk-gateway:latest
ports:
- 8080:8080
environment:
- TYK_GW_SECRET=352d20ee67be67f6340b4c0605b044b7
volumes:
- ./tyk/tyk.conf:/opt/tyk-gateway/tyk.conf
- ./apps:/opt/tyk-gateway/apps
networks:
- tyk
depends_on:
- tyk-redis
networks:
tyk: