-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yaml
More file actions
66 lines (63 loc) · 1.13 KB
/
compose.yaml
File metadata and controls
66 lines (63 loc) · 1.13 KB
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
services:
redis:
container_name: tin_redis
image: redis:latest
networks:
- tin-network
expose:
- "6379"
celery:
container_name: tin_celery
image: tin-base
stop_grace_period: 3s
entrypoint:
- uv
- run
- watchfiles
- --filter
- python
- --ignore-paths
- /app/tin/media
- --sigint-timeout
- "30"
- uv run celery -A tin worker
- /app/tin
networks:
- tin-network
depends_on:
- redis
volumes:
- .:/app
environment:
IN_DOCKER: true
django:
container_name: tin_django
build: .
image: tin-base
restart: on-failure
networks:
- tin-network
ports:
- 8000:8080
depends_on:
- celery
- redis
volumes:
- .:/app
entrypoint:
- uv
- run
- python
- manage.py
- runserver
- 0.0.0.0:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:8080"]
start_period: 15s
start_interval: 5s
environment:
IN_DOCKER: true
networks:
tin-network:
driver: bridge
name: tin-dev-network