forked from CloudReactor/cloudreactor-python-ecs-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (66 loc) · 1.57 KB
/
docker-compose.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.7"
x-service-base: &service-base
image: cloudreactor-ecs-quickstart
build:
context: ./
volumes:
- ./src/:/home/appuser/src/
- ./deploy/files/proc_wrapper_1.3.0.py:/home/appuser/proc_wrapper.py
- ./deploy/files/.env.dev:/home/appuser/.env
x-dev-base: &dev-base
<<: *service-base
image: cloudreactor-ecs-quickstart-dev
build:
context: ./
dockerfile: Dockerfile-dev
volumes:
- ./src/:/home/appuser/src/
- ./tests/:/home/appuser/tests/
- ./deploy/files/.env.dev:/home/appuser/.env
x-pip-compile-base: &pip-compile-base
image: cloudreactor-pip-tools
build:
context: ./
dockerfile: tools/pip-tools/Dockerfile
volumes:
- ./:/work
services:
task_1:
<<: *service-base
command: python src/task_1.py
file_io:
<<: *service-base
command: python src/file_io.py
web_server:
<<: *service-base
command: flask run -p 7070 --host=0.0.0.0
environment:
FLASK_APP: "src/web_server.py"
ports:
- "7070:7070"
# Not a deployed task, here for debugging your Docker build.
shell:
<<: *service-base
command: bash
pytest:
<<: *dev-base
pytest-cov:
<<: *dev-base
command: pytest --cov=src
pylint:
<<: *dev-base
command: pylint --rcfile=src/.pylintrc src
mypy:
<<: *dev-base
command: mypy src
safety:
<<: *dev-base
command: safety check
dev-shell:
<<: *dev-base
command: bash
pip-compile:
<<: *pip-compile-base
pip-compile-dev:
<<: *pip-compile-base
command: dev-requirements.in --output-file dev-requirements.txt