-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
67 lines (63 loc) · 1.41 KB
/
compose.yaml
File metadata and controls
67 lines (63 loc) · 1.41 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
# -----------------------------
# Docker Compose file for Djazz
# https://docs.docker.com/reference/compose-file/
# This compose file assumes that you are running both
# Postgres and Redis already running and available
# through the DATABASE_URL and REDIS_URL environment
# variables, also assumes that you are running the
# Django locally on port 8000.
# Prerequisites:
# - Docker
# - Docker Compose
# Author: @azataiot
# Last update: 2025-01-30
# -----------------------------
services:
node:
image: node:alpine
command: >
sh -c "npm install -g pnpm &&
pnpm install &&
pnpm dev"
working_dir: /app
volumes:
- .:/app
- /app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- VITE_HOST=0.0.0.0
networks:
- djazz_network
hostname: vite
extra_hosts:
- "host.docker.internal:host-gateway"
celery:
build:
context: .
args:
DEV: "true"
image: djazz:dev
command: celery -A djazz worker -l INFO
volumes:
- .:/app
- /app/node_modules
networks:
- djazz_network
celery-beat:
build:
context: .
args:
DEV: "true"
image: djazz:dev
command: celery -A djazz beat -l INFO
volumes:
- .:/app
- /app/node_modules
networks:
- djazz_network
networks:
djazz_network:
name: djazz_network
driver: bridge