Created
August 19, 2017 06:05
-
-
Save mikeywaites/efe2ddd4770f1ba56ad623f993c27fc6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' | |
| services: | |
| db: | |
| image: 'postgres:9.4' | |
| environment: | |
| - POSTGRES_USER=postgres | |
| - POSTGRES_PASSWORD=root | |
| - POSTGRES_DATABASE=postgres | |
| - POSTGRES_HOST=db | |
| volumes: | |
| - pgdata:/var/lib/postgresql/data | |
| api: | |
| context: ../api/ | |
| volumes: | |
| - .:/opt/code | |
| environment: | |
| - VIZIBL_CONFIG=Docker | |
| - POSTGRES_USER=postgres | |
| - SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://postgres:root@db:5432/postgres | |
| - POSTGRES_PASSWORD=root | |
| - POSTGRES_DATABASE=postgres | |
| - POSTGRES_HOST=db | |
| depends_on: | |
| - db | |
| stdin_open: true | |
| tty: true | |
| app: | |
| build: . | |
| volumes: | |
| - .:/opt/code | |
| depends_on: | |
| - api | |
| networks: | |
| default: | |
| external: | |
| name: vizibl |
This file contains hidden or 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
| #!/bin/bash | |
| export COMPOSE_HTTP_TIMEOUT=86400 | |
| docker-compose -f ../api/docker-compose.yml up -d api | |
| docker-compose -f ../other-service/docker-compose.yml up -d other_service | |
| docker-compose up -d app | |
| docker attach app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment