-
Notifications
You must be signed in to change notification settings - Fork 48
/
docker-compose.yml
92 lines (81 loc) · 2.1 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
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.9'
services:
tyk-dashboard:
image: tykio/tyk-dashboard:${DASHBOARD_VERSION:-v5.4.0}
container_name: tyk-dashboard
environment:
- TYK_DB_LICENSEKEY=${DASH_LICENSE:?License key missing from Docker environment file "".env" file. Review The Getting Started steps in README.md.}
- TYK_DB_STORAGE_MAIN_TYPE=postgres
- TYK_DB_STORAGE_MAIN_CONNECTIONSTRING=user=postgres password=topsecretpassword host=tyk-postgres port=5432 database=tyk_analytics
depends_on:
tyk-postgres:
condition: service_healthy
ports:
- "3000:3000"
env_file:
- ./confs/tyk_analytics.env
networks:
- tyk
tyk-ent-portal:
image: tykio/portal:${PORTAL_VERSION:-v1.10.0}
command: --bootstrap
ports:
- 3001:3001
environment:
- PORTAL_LICENSEKEY=${DASH_LICENSE:?License key missing from Docker environment file "".env" file. Review The Getting Started steps in README.md.}
env_file:
- ./confs/tyk_portal.env
networks:
- tyk
tyk-gateway:
image: tykio/tyk-gateway:${GATEWAY_VERSION:-v5.4.0}
container_name: tyk-gateway
ports:
- "8080:8080"
env_file:
- ./confs/tyk.env
networks:
- tyk
tyk-pump:
image: tykio/tyk-pump-docker-pub:v1.10.0
container_name: tyk-pump
env_file:
- ./confs/pump.env
- ./confs/pump.postgres.env
depends_on:
tyk-postgres:
condition: service_healthy
networks:
- tyk
tyk-redis:
image: redis
container_name: tyk-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- tyk
tyk-postgres:
image: postgres:latest
container_name: tyk-postgres
environment:
- POSTGRES_DB=tyk_analytics
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=topsecretpassword
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- tyk
volumes:
redis-data:
postgres-data:
networks:
tyk: