Skip to content

Instantly share code, notes, and snippets.

@allanfreitas
Forked from tsh-code/docker-compose.yml
Created May 9, 2020 13:23
Show Gist options
  • Save allanfreitas/bff835886ee3fc3b55f5aeac085eb705 to your computer and use it in GitHub Desktop.
Save allanfreitas/bff835886ee3fc3b55f5aeac085eb705 to your computer and use it in GitHub Desktop.
Starting docker compose for our system
version: '3.3'
services:
security-db:
image: postgres
environment:
POSTGRES_DB: security
POSTGRES_USER: security
POSTGRES_PASSWORD: password
reporting-db:
image: postgres
environment:
POSTGRES_DB: reporting
POSTGRES_USER: reporting
POSTGRES_PASSWORD: password
keycloak-db:
image: postgres
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: jboss/keycloak
environment:
DB_VENDOR: postgres
DB_ADDR: keycloak-db
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: password
depends_on:
- keycloak-db
mailhog:
image: mailhog/mailhog
hostname: mailhog
security:
image: tsh-security-service:latest
container_name: security
command: [bash, -c, 'ts-node-dev --poll ./src/index.ts']
hostname: security
depends_on:
- keycloak
- security-db
mailer:
image: tsh-mailer-service:latest
container_name: mailer
command: [bash, -c, 'ts-node-dev --poll ./src/index.ts']
hostname: mailer
depends_on:
- mailhog
reporting:
image: tsh-reporting-service:latest
container_name: reporting
command: [bash, -c, 'ts-node-dev --poll ./src/index.ts']
hostname: reporting
depends_on:
- reporting-db
- mailer
gateway:
image: tsh-gateway-service:latest
container_name: gateway
command: [bash, -c, 'ts-node-dev --poll ./src/index.ts']
hostname: gateway
depends_on:
- security
- reporting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment