Created
May 31, 2017 06:42
-
-
Save robert-malai/8145d1d86d7a38e3463996c523144967 to your computer and use it in GitHub Desktop.
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: '2' | |
services: | |
influxdb: | |
image: tutum/influxdb | |
container_name: influxdb | |
# keep this flag until next step | |
volumes: | |
- ./docker/influxdb/init-influxql/init.influxql:/init_script.influxql:ro | |
ports: | |
- "8083:8083" | |
- "8086:8086" | |
redshift: | |
image: <blablabla>.dkr.ecr.us-east-1.amazonaws.com/dashboard/redshift:latest | |
container_name: redshift | |
environment: | |
- POSTGRES_DB=datastore | |
- POSTGRES_USER=docker | |
- POSTGRES_PASSWORD=letmein | |
ports: | |
- "5433:5432" | |
healthcheck: | |
test: "psql -h 0.0.0.0 -p 5432 -U docker -c 'SELECT version()' || false" | |
interval: 1000ms | |
retries: 100 | |
data-warehouse-service: | |
depends_on: | |
influxdb: | |
condition: service_started | |
redshift: | |
condition: service_healthy | |
links: | |
- influxdb | |
- redshift | |
image: <blablabla>.dkr.ecr.us-east-1.amazonaws.com/dashboard/data-warehouse-service:latest | |
container_name: data-warehouse-service | |
environment: | |
- REDSHIFT_HOST=redshift | |
- REDSHIFT_PORT=5432 | |
- REDSHIFT_USERNAME=docker | |
- REDSHIFT_PASSWORD=letmein | |
- INFLUX_HOST=http://influxdb:8086 | |
- INFLUX_USERNAME=docker | |
- INFLUX_PASSWORD=docker | |
ports: | |
- "8080:8080" | |
mysql-dashboard: | |
image: mysql:5.7 | |
container_name: mysql-dashboard | |
ports: | |
- "3307:3306" | |
volumes: | |
- ./docker/mysql/init-sql:/docker-entrypoint-initdb.d | |
environment: | |
- MYSQL_USER=docker | |
- MYSQL_PASSWORD=docker | |
- MYSQL_ROOT_PASSWORD=docker | |
- MYSQL_DATABASE=client_dashboard | |
healthcheck: | |
test: "ls /var/run/mysqld/mysqld.sock" | |
interval: 250ms | |
retries: 120 | |
redisDashboard: | |
image: redis | |
container_name: redisDashboard | |
ports: | |
- "6379:6379" | |
environment: | |
- NODE_ENV=test | |
heatlhcheck: | |
test: "redis-cli ping" | |
client-dashboard-api: | |
image: <blablabla>.dkr.ecr.us-east-1.amazonaws.com/dashboard/client-dashboard-api:latest | |
container_name: client-dashboard-api | |
depends_on: | |
data-warehouse-service: | |
condition: service_started | |
mysql-dashboard: | |
condition: service_healthy | |
redisDashboard: | |
condition: service_healthy | |
links: | |
- data-warehouse-service | |
- mysql-dashboard | |
- redisDashboard | |
ports: | |
- "1338:1338" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment