-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
43 lines (38 loc) · 877 Bytes
/
compose.dev.yaml
File metadata and controls
43 lines (38 loc) · 877 Bytes
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
# compose.dev.yaml (DEVELOPMENT OVERRIDE)
services:
web:
build:
# Override the Dockerfile to use the development version
context: .
target: dev
command: python src/manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- ./src:/app/src
depends_on:
db:
condition: service_healthy
# --- LINTING & FORMATTING SERVICES ---
lint:
build:
context: .
target: dev
command: sh -c "./scripts/lint.sh"
volumes:
- ./${SRC_DIR:-src}:/app/src
# --- TESTING SERVICE ---
test:
build:
context: .
target: dev
command: pytest
env_file:
- .env
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}_test
- PYTHONPATH=/app/src
volumes:
- ./src:/app/src
depends_on:
- db