-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-tests.yml
35 lines (34 loc) · 914 Bytes
/
docker-tests.yml
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
version: '3'
services:
endpoint:
build: ./database-server/src
env_file: ./database-server/test.env
volumes:
- ./database-server/src:/usr/src/app/
ports:
- 5000:80
depends_on:
- database
database:
image: postgres
restart: always
env_file: ./database-server/test.env
test:
build: ./database-server/tests
depends_on:
- database
- endpoint
volumes:
- ./database-server/tests:/usr/src/app
- ./database-server/src:/usr/src/app/src
env_file: ./database-server/test.env
analytics:
build: ./
depends_on:
- database
- endpoint
volumes:
- ./src/main/java/CleanCycle/Analytics:/home/gradle/project/src/main/java/CleanCycle/Analytics
- ./src/test/java/CleanCycle/Analytics:/home/gradle/project/src/test/java/CleanCycle/Analytics
environment:
- TEST_ENV=True #so will run tests