Skip to content

Instantly share code, notes, and snippets.

@iainporter
Last active July 18, 2020 09:28
Show Gist options
  • Save iainporter/e9f7a2932a693e9ddf65f92b69c14b9d to your computer and use it in GitHub Desktop.
Save iainporter/e9f7a2932a693e9ddf65f92b69c14b9d to your computer and use it in GitHub Desktop.
docker-compose file for simple testcontainers testing
version: '3'
services:
postgres-db:
image: postgres:11
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=sms
sms-service:
image: porterhead/sms-service
environment:
WAIT_HOSTS: postgres-db:5432
quarkus.datasource.username: postgres
quarkus.datasource.password: postgres
quarkus.datasource.jdbc.url: jdbc:postgresql://postgres-db:5432/sms
depends_on:
- postgres-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment