-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.apps.yml
69 lines (66 loc) · 1.44 KB
/
docker-compose.apps.yml
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
include:
- docker-compose.opensearch.${OPENSEARCH_CLUSTER_TYPE:-single-node}.yml
services:
web:
profiles:
- backend
build:
context: .
dockerfile: Dockerfile
mem_limit: 1gb
cpus: 2
command: ./scripts/run-django-dev.sh
stdin_open: true
tty: true
ports:
- "8061:8061"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_healthy
volumes:
- .:/src
- django_media:/var/media
watch:
profiles:
- frontend
working_dir: /src
image: node:22.13
entrypoint: ["/bin/sh", "-c"]
command:
- |
yarn install --immutable
yarn workspace ol-components storybook --no-open &
yarn watch
ports:
- "8062:8062"
- "6006:6006"
environment:
- NEXT_SERVER_MITOL_API_BASE_URL=http://nginx:8063/
volumes:
- .:/src
links:
- web
celery:
profiles:
- backend
build:
context: .
dockerfile: Dockerfile
mem_limit: ${MITOL_CELERY_MEM_LIMIT:-2gb}
cpus: ${MITOL_CELERY_CPU_LIMIT:-2}
command: >
/bin/bash -c '
sleep 3;
celery -A main.celery:app worker -E -Q default,edx_content -B -l ${MITOL_LOG_LEVEL:-INFO}'
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- .:/src
- django_media:/var/media