Skip to content

Commit 54e90b2

Browse files
committed
Add Heroku Connect to Docker Compose
1 parent 08c3176 commit 54e90b2

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ services:
2424
depends_on:
2525
db:
2626
condition: service_healthy
27+
salesforce_connect:
28+
condition: service_healthy
2729
volumes:
2830
- .:/app
2931
- bundle-data-v2:/usr/local/bundle
@@ -46,14 +48,41 @@ services:
4648
- POSTGRES_DB
4749
- POSTGRES_PASSWORD
4850
- POSTGRES_USER
51+
- SALESFORCE_CONNECT_HOST=salesforce_connect
52+
- SALESFORCE_CONNECT_PORT=5432
53+
- SALESFORCE_CONNECT_USER=postgres
54+
- SALESFORCE_CONNECT_PASSWORD=password
55+
- SALESFORCE_CONNECT_DB=salesforce_development
4956
extra_hosts:
5057
- "host.docker.internal:host-gateway"
5158
smee:
5259
image: deltaprojects/smee-client
5360
platform: linux/amd64
5461
command: -u $SMEE_TUNNEL -t http://api:3009/github_webhooks
5562

63+
salesforce_connect:
64+
image: ghcr.io/raspberrypifoundation/heroku-connect
65+
volumes:
66+
- salesforce_connect_data:/var/lib/postgres/data/
67+
environment:
68+
- POSTGRES_DB=salesforce_development
69+
- POSTGRES_CLONE_DB=salesforce_test
70+
- POSTGRES_PASSWORD=password
71+
- POSTGRES_USER=postgres
72+
healthcheck:
73+
test:
74+
[
75+
"CMD-SHELL",
76+
"pg_isready -h 127.0.0.1 -U $${POSTGRES_USER} -d $${POSTGRES_DB}",
77+
]
78+
interval: 5s
79+
timeout: 5s
80+
retries: 10
81+
ports:
82+
- "4101:5432"
83+
5684
volumes:
5785
postgres-data:
5886
bundle-data-v2:
5987
node_modules:
88+
salesforce_connect_data:

0 commit comments

Comments
 (0)