-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.65 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
67
68
69
70
71
72
73
74
75
76
services:
web:
build:
context: .
target: dev
ports:
- "8010:8000"
volumes:
- .:/app
environment:
- DATABASE_URL=postgres://baky:baky@db:5432/baky
- SECRET_KEY=django-insecure-docker-dev-key
- DEBUG=True
- ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
- EMAIL_HOST=mailpit
- EMAIL_PORT=1025
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=baky
- POSTGRES_USER=baky
- POSTGRES_PASSWORD=baky
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U baky"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
worker:
build:
context: .
target: dev
command: python manage.py qcluster
volumes:
- .:/app
environment:
- DATABASE_URL=postgres://baky:baky@db:5432/baky
- SECRET_KEY=django-insecure-docker-dev-key
- DEBUG=True
- EMAIL_HOST=mailpit
- EMAIL_PORT=1025
depends_on:
db:
condition: service_healthy
restart: unless-stopped
tailwind:
image: node:20-slim
working_dir: /app
volumes:
- .:/app
- tailwind_node_modules:/app/node_modules
command: ["sh", "-c", "npm install && npx tailwindcss -i static/css/input.css -o static/css/output.css --watch"]
tty: true
restart: unless-stopped
mailpit:
image: axllent/mailpit
ports:
- "8026:8025"
- "1026:1025"
restart: unless-stopped
volumes:
postgres_data:
tailwind_node_modules: