-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (43 loc) · 1001 Bytes
/
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
version: '3.8'
x-app: &app
build:
context: .
target: dev
volumes:
- ./src:/usr/app/src
ports:
- '8080:8080'
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
depends_on:
- postgres
services:
postgres:
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
gunicorn:
<<: *app
build:
context: .
target: base
flask:
<<: *app
pytest:
command: pytest -sra --cov --cov-report=html:coverage_report --cov-report=term-missing --cov-fail-under=100 --cov-config=.coveragerc
<<: *app
ptw:
command: ptw --wait -- -sra --cov --cov-report=html:coverage_report --cov-report=term-missing --cov-fail-under=100 --cov-config=.coveragerc
<<: *app
create-migration:
command: flask db migrate
<<: *app
run-local-migration:
command: flask db upgrade
<<: *app