forked from gamonoid/icehrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-testing.yaml
41 lines (39 loc) · 1009 Bytes
/
docker-compose-testing.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.5"
services:
mysql-testing:
image: mysql:5.7
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: IceHrmR00t
MYSQL_USER: testing
MYSQL_PASSWORD: testing
MYSQL_DATABASE: icehrm
volumes:
- ./docker/init.sql:/docker-entrypoint-initdb.d/setup.sql
- ./docker/testing/db_data:/var/lib/mysql
icehrm-testing:
build:
context: ./
dockerfile: Dockerfile-testing
ports:
- 8090:8090
logging:
driver: none
depends_on:
- mysql-testing
# Cypress container
cypress:
# the Docker image to use from https://github.com/cypress-io/cypress-docker-images
image: "cypress/included:3.2.0"
depends_on:
- icehrm-testing
environment:
# pass base url to test pointing at the web application
- CYPRESS_baseUrl=http://icehrm-testing:8090
# share the current folder as volume to avoid copying
working_dir: /e2e
volumes:
- ./test/frontend:/e2e
volumes:
db_data: