Skip to content

Commit 4837a1c

Browse files
committed
Add heroku-connect to Docker compose file
This commit adds the heroku-connect container as documented in: https://github.com/RaspberryPiFoundation/heroku-connect This means that building the project now requires authenticating with `ghcr.io` by doing: $ echo $GITHUB_TOKEN | docker login ghcr.io -u <github-username> \ --password-stdin Where $GITHUB_TOKEN is a PAT with `packages:read` permissions (same as you use for NPM).
1 parent 217f3e4 commit 4837a1c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,29 @@ services:
5353
platform: linux/amd64
5454
command: -u $SMEE_TUNNEL -t http://api:3009/github_webhooks
5555

56+
salesforce_connect:
57+
image: ghcr.io/raspberrypifoundation/heroku-connect
58+
volumes:
59+
- salesforce_connect_data:/var/lib/postgres/data/
60+
environment:
61+
- POSTGRES_DB=salesforce_development
62+
- POSTGRES_CLONE_DB=salesforce_test
63+
- POSTGRES_PASSWORD=password
64+
- POSTGRES_USER=postgres
65+
healthcheck:
66+
test:
67+
[
68+
"CMD-SHELL",
69+
"pg_isready -h 127.0.0.1 -U $${POSTGRES_USER} -d $${POSTGRES_DB}",
70+
]
71+
interval: 5s
72+
timeout: 5s
73+
retries: 10
74+
ports:
75+
- "4101:5432"
76+
5677
volumes:
5778
postgres-data:
5879
bundle-data:
5980
node_modules:
81+
salesforce_connect_data:

0 commit comments

Comments
 (0)