-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
53 lines (48 loc) · 1.35 KB
/
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
48
49
50
51
52
53
---
services:
algorithm-exercises-py-test:
image: algorithm-exercises-py:test
build:
context: .
target: testing
environment:
LOG_LEVEL: ${LOG_LEVEL:-INFO} ## (1) ## INFO | DEBUG
BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
volumes:
- ./coverage:/app/coverage
profiles: ["testing"]
algorithm-exercises-py-lint:
image: algorithm-exercises-py:lint
build:
context: .
target: lint
# environment:
# LOG_LEVEL: ${LOG_LEVEL:-info} ## (1) ## info | debug
# BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
volumes:
- ./:/app
profiles: ["lint"]
algorithm-exercises-py-dev:
image: algorithm-exercises-py:dev
build:
context: .
target: development
environment:
LOG_LEVEL: ${LOG_LEVEL:-INFO}
BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
volumes:
- ./:/app
profiles: ["development"]
algorithm-exercises-py:
image: algorithm-exercises-py:latest
build:
context: .
target: production
environment:
LOG_LEVEL: ${LOG_LEVEL:-INFO} ## (1) ## INFO | DEBUG
BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
profiles: ["production"]
## REFERENCES:
## (1) Passing Environment variable with fallback value:
## https://stackoverflow.com/a/70772707/6366150
##