-
-
Notifications
You must be signed in to change notification settings - Fork 235
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
34 lines (32 loc) · 712 Bytes
/
docker-compose.dev.yml
File metadata and controls
34 lines (32 loc) · 712 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
services:
api:
ports:
# Exposes application port.
- "8000:8000"
build: &build
context: .
dockerfile: ./Dockerfile
target: dev
volumes:
# Adds current directory as volume.
- .:/app/src/
environment:
# Enables autoreload.
{{cookiecutter.project_name | upper}}_RELOAD: "True"
develop:
watch:
- action: rebuild
path: uv.lock
{%- if cookiecutter.enable_taskiq == "True" %}
taskiq-worker:
build:
<<: *build
volumes:
# Adds current directory as volume.
- .:/app/src/
command:
- taskiq
- worker
- {{cookiecutter.project_name}}.tkq:broker
- --reload
{%- endif %}