Created
December 31, 2018 18:38
-
-
Save tsh-code/79f7079c9e2035ec46717dd8cd7ff643 to your computer and use it in GitHub Desktop.
Starting docker compose for our system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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