Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2017 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e8d5afe0f303914c9106a51d0cf8d5fe to your computer and use it in GitHub Desktop.
Save anonymous/e8d5afe0f303914c9106a51d0cf8d5fe to your computer and use it in GitHub Desktop.
My tyk
version: '2'
services:
tyk_redis:
image: redis:latest
hostname: redis
ports:
- "6379:6379"
networks:
gateway:
aliases:
- redis
tyk_mongo:
image: mongo:latest
command: ["mongod", "--smallfiles"]
hostname: mongo
ports:
- "27017:27017"
networks:
gateway:
aliases:
- mongo
tyk_dashboard:
image: tykio/tyk-dashboard:latest
ports:
- "3000:3000"
- "5000:5000"
volumes:
- ./tyk_analytics.conf:/opt/tyk-dashboard/tyk_analytics.conf
networks:
- gateway
tyk_pump:
image: tykio/tyk-pump-docker-pub:latest
networks:
- gateway
volumes:
- ./pump.conf:/opt/tyk-pump/pump.conf
tyk_gateway:
image: tykio/tyk-gateway:latest
ports:
- "80:8080"
- "8080:8080"
volumes:
- ./tyk.conf:/opt/tyk-gateway/tyk.conf
networks:
- gateway
environment:
- TYKLANG=-python
tyk_statics:
image: nginx:alpine
ports:
- "8081:80"
volumes:
- ./bundles:/usr/share/nginx/html
networks:
- gateway
networks:
gateway:
{
"listen_port": 8080,
"secret": "352d20ee67be67f6340b4c0605b044b7",
"node_secret": "352d20ee67be67f6340b4c0605b044b7",
"template_path": "/opt/tyk-gateway/templates",
"tyk_js_path": "/opt/tyk-gateway/js/tyk.js",
"middleware_path": "/opt/tyk-gateway/middleware",
"use_db_app_configs": true,
"db_app_conf_options": {
"connection_string": "http://tyk_dashboard:3000",
"node_is_segmented": false,
"tags": ["test2"]
},
"app_path": "/opt/tyk-gateway/apps/",
"storage": {
"type": "redis",
"host": "redis",
"port": 6379,
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 100
},
"enable_analytics": true,
"analytics_config": {
"type": "mongo",
"csv_dir": "/tmp",
"mongo_url": "",
"mongo_db_name": "",
"mongo_collection": "",
"purge_delay": -1,
"ignored_ips": []
},
"health_check": {
"enable_health_checks": true,
"health_check_value_timeouts": 60
},
"optimisations_use_async_session_write": true,
"enable_non_transactional_rate_limiter": true,
"enable_sentinel_rate_limiter": false,
"allow_master_keys": false,
"policies": {
"policy_source": "service",
"policy_connection_string": "http://tyk_dashboard:3000",
"policy_record_name": "tyk_policies"
},
"hash_keys": true,
"close_connections": true,
"allow_insecure_configs": true,
"coprocess_options": {
"enable_coprocess": true,
"coprocess_grpc_server": ""
},
"enable_bundle_downloader": true,
"bundle_base_url": "http://tyk_statics:80/",
"global_session_lifetime": 100,
"force_global_session_lifetime": false,
"max_idle_connections_per_host": 100
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment