Skip to content

Instantly share code, notes, and snippets.

@akantsevoi
Created April 13, 2020 19:39
Show Gist options
  • Save akantsevoi/0c7011595461039dd0ae441b04c81e49 to your computer and use it in GitHub Desktop.
Save akantsevoi/0c7011595461039dd0ae441b04c81e49 to your computer and use it in GitHub Desktop.
version: '3.7'
networks:
integration-tests:
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
- database
environment:
- DB_HOST=database
- DB_PORT=3306
networks:
- integration-tests
command: ["./waitMysql.sh", "database", "./tests.sh"]
database:
image: mysql:8.0
volumes:
- ./cmd/dbscheme:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: test
networks:
- integration-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment