-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yml
53 lines (50 loc) · 965 Bytes
/
test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
db:
ports:
- 5432:5432
env_file:
- path: ".env.test"
required: true
volumes:
- ./data.sql:/docker-entrypoint-initdb.d/data.sql
extends:
file: common.yml
service: db
nginx:
ports:
- 80:80
volumes:
- ./nginx-test.conf:/etc/nginx/nginx.conf
depends_on:
- backend
extends:
file: common.yml
service: nginx
backend:
build:
dockerfile: Dockerfile.dev
ports:
- 3000:3000
env_file:
- path: ".env.test"
required: true
volumes:
- ../backend/src:/app/src
- ../backend/include:/app/include
depends_on:
- db
extends:
file: common.yml
service: backend
test:
env_file:
- path: ".env.test"
required: true
volumes:
- ../backend/test/tests:/app/test/tests
depends_on:
- db
- backend
extends:
file: common.yml
service: test