-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yaml
47 lines (46 loc) · 1.35 KB
/
docker-compose.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
42
43
44
45
46
47
version: '3'
services:
sonar:
build: ./sonar
depends_on:
- app
- proxy
app:
build: ./app
platform: linux/amd64
volumes:
- ./app:/app
environment:
# This ensures that errors are printed as they occur, which
# makes debugging easier.
- PYTHONUNBUFFERED=1
- LOG_LEVEL=DEBUG
proxy:
build: ./proxy
ports:
- 8080:8080
depends_on:
- app
it:
build: ./it
# This tells Docker to run our entrypoint in a way that ensures
# signals are handled properly and that zombie processes are killed.
# The main outcome being that it makes it faster to shut down the
# stack.
init: true
# We override the default command so that the integration tests don't
# run on startup, and so that the container stays alive. This makes
# it faster when a developer wants to run the integration tests.
entrypoint:
- tail
command:
- -f
- /dev/null
volumes:
- ./it/src:/it/src
- ./it/package.json:/it/package.json
- ./it/yarn.lock:/it/yarn.lock
- ./it/tsconfig.json:/it/tsconfig.json
depends_on:
- proxy
- app