-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.python.yml
108 lines (100 loc) · 2.25 KB
/
docker-compose.python.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.9'
services:
tyk-webserver:
image: nginx:alpine
container_name: tyk-webserver
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "3080:80"
volumes:
- ./confs/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./plugins:/plugins
networks:
- tyk
tyk-dashboard:
image: tykio/tyk-dashboard:v5.1.2
container_name: tyk-dashboard
environment:
- 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:v1.5.0
command: --bootstrap
ports:
- 3001:3001
env_file:
- ./confs/tyk_portal.env
networks:
- tyk
tyk-gateway:
image: tykio/tyk-gateway:v5.1.2
container_name: tyk-gateway
ports:
- "8080:8080"
env_file:
- ./confs/tyk.env
environment:
TYK_GW_COPROCESSOPTIONS_ENABLECOPROCESS: true
depends_on:
tyk-webserver:
condition: service_healthy
volumes:
- ./plugins:/plugins
networks:
- tyk
tyk-pump:
image: tykio/tyk-pump-docker-pub:v1.8
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: