0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/task-definition.plugins.json
Marius Andra 606525644e
Add deployment environment variables (#2874)
* add deployment env to track instances

* Rename Production ECS

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-01-11 13:25:40 +01:00

174 lines
7.0 KiB
JSON

{
"family": "posthog-production-plugins",
"networkMode": "awsvpc",
"executionRoleArn": "posthog-production-ecs-task",
"taskRoleArn": "posthog-production-ecs-task",
"containerDefinitions": [
{
"name": "posthog-production-plugins",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "awslogs-posthog-production",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "posthog-production-plugins"
}
},
"essential": true,
"environment": [
{
"name": "USING_PGBOUNCER",
"value": "True"
},
{
"name": "DISABLE_SERVER_SIDE_CURSORS",
"value": "True"
},
{
"name": "CLICKHOUSE_ASYNC",
"value": "False"
},
{
"name": "CLICKHOUSE_DATABASE",
"value": "posthog"
},
{
"name": "CLICKHOUSE_ENABLE_STORAGE_POLICY",
"value": "True"
},
{
"name": "CLICKHOUSE_REPLICATION",
"value": "True"
},
{
"name": "CLICKHOUSE_SECURE",
"value": "True"
},
{
"name": "CLICKHOUSE_VERIFY",
"value": "True"
},
{
"name": "EVENT_USAGE_CACHING_TTL",
"value": "3600"
},
{
"name": "INCLUDE_DOCS",
"value": "1"
},
{
"name": "IS_BEHIND_PROXY",
"value": "True"
},
{
"name": "DISABLE_SECURE_SSL_REDIRECT",
"value": "True"
},
{
"name": "IS_DOCKER",
"value": "True"
},
{
"name": "KAFKA_BASE64_KEYS",
"value": "True"
},
{
"name": "PRIMARY_DB",
"value": "clickhouse"
},
{
"name": "SITE_URL",
"value": "https://app.posthog.com"
},
{
"name": "EMAIL_DEFAULT_FROM",
"value": "hey@posthog.com"
},
{
"name": "DEPLOYMENT",
"value": "Posthog Cloud"
}
],
"secrets": [
{
"name": "CLICKHOUSE_CA",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_CA::"
},
{
"name": "CLICKHOUSE_HOST",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_HOST::"
},
{
"name": "CLICKHOUSE_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_PASSWORD::"
},
{
"name": "DATABASE_URL",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:DATABASE_URL::"
},
{
"name": "EMAIL_HOST",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST::"
},
{
"name": "EMAIL_HOST_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST_PASSWORD::"
},
{
"name": "EMAIL_HOST_USER",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST_USER::"
},
{
"name": "EMAIL_PORT",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_PORT::"
},
{
"name": "EMAIL_USE_TLS",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_USE_TLS::"
},
{
"name": "KAFKA_CLIENT_CERT_B64",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_CLIENT_CERT_B64::"
},
{
"name": "KAFKA_CLIENT_CERT_KEY_B64",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_CLIENT_CERT_KEY_B64::"
},
{
"name": "KAFKA_TRUSTED_CERT_B64",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_TRUSTED_CERT_B64::"
},
{
"name": "KAFKA_URL",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_URL::"
},
{
"name": "POSTHOG_PERSONAL_API_KEY",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:POSTHOG_PERSONAL_API_KEY::"
},
{
"name": "REDIS_URL",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:REDIS_URL::"
},
{
"name": "SECRET_KEY",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SECRET_KEY::"
},
{
"name": "SENTRY_DSN",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SENTRY_DSN::"
},
{
"name": "STATSD_HOST",
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STATSD_HOST::"
}
],
"entryPoint": ["sh", "-c"],
"command": ["./bin/plugin-server"]
}
],
"requiresCompatibilities": ["FARGATE"],
"cpu": "4096",
"memory": "8192"
}