-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.test.yml
61 lines (57 loc) · 1.3 KB
/
docker-compose.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
54
55
56
57
58
59
60
61
version: "3.7"
services:
api:
build:
context: ./api
dockerfile: ./docker/Dockerfile.test
restart: always
tty: true
volumes:
# Recompile code on changes
- ./api/src:/api/src
- ./api/tsconfig.json:/api/tsconfig.json
- ./api/_integration-tests_:/api/_integration-tests_
ports:
# Port for the app
- 5001:8080
# node.js process is listening for a debugging client on
- 9230:9229
expose:
# Port for the app
- 5001
env_file:
- ./api/docker/.common.env
- ./api/docker/.test.env
- ./postgres/docker/.common.env
- ./postgres/docker/.test.env
depends_on:
- testdb
- testredis
networks:
- livestreamer_backend
testdb:
container_name: testdb
build:
context: ./postgres
dockerfile: ./docker/Dockerfile.test
restart: "no"
env_file:
- ./postgres/docker/.common.env
- ./postgres/docker/.test.env
ports:
- 54323:5432
networks:
- livestreamer_backend
testredis:
container_name: redis
build:
context: ./redis
dockerfile: ./docker/Dockerfile
ports:
- 6379:6379
networks:
- livestreamer_backend
networks:
livestreamer_backend:
name: livestreamer_backend
driver: bridge