This is intended just as a development setup. Don't push any production specific configuration or code, specially secrets.
Based on the main Docker Compose setup for CKAN.
These images and Docker Compose files are used to deploy the US Deparment of Education web app. There are different compose files based on the environment.
For documentation/issues/etc please visit:
Some extensions require to include sensitive data, like API keys and credentials files. They are not included in this repository. In order those extensions work properly you will need to include them. You can
- Ask Project Manager for them
- Create dummy accounts, generate Keys and use them
Set Google Recaptcha public and private keys in .dev.env
CKAN__RECAPTCHA__PUBLICKEY=YourKey CKAN__RECAPTCHA__PRIVATEKEY=YourKey
Generate token.dat file following instructions here https://github.com/CivicActions/ckanext-ga-report#authorization and copy insights into ckan/token.dat. Looks something like
{
"_module": "oauth2client.client",
"token_expiry": "2019-05-20T06:48:03Z",
"access_token": "token",
"token_uri": "https://oauth2.googleapis.com/token",
"invalid": false,
"token_response": {
"access_token": "token",
"scope": "https://www.googleapis.com/auth/analytics.readonly",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "smaller-token"
},
"client_id": "coolid.apps.googleusercontent.com",
"id_token": null,
"client_secret": "secret",
"revoke_uri": "https://accounts.google.com/o/oauth2/revoke",
"_class": "OAuth2Credentials",
"refresh_token": "token",
"user_agent": null
}
You will also need service account credentials to track GA events. Something like
{
"type": "service_account",
"project_id": "us-ed-123456",
"private_key_id": "private_key",
"private_key": "-----BEGIN PRIVATE KEY-----
key-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "client_id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/..."
}