-
Notifications
You must be signed in to change notification settings - Fork 853
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (124 loc) · 2.7 KB
/
docker-compose.yml
File metadata and controls
134 lines (124 loc) · 2.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
services:
web:
build:
context: .
target: dev
command: ./bin/run-prod.sh
env_file: .env
volumes:
- ./:/app:delegated
- /app/.venv
user: ${UID:-kitsune}
stdin_open: true
tty: true
depends_on:
- postgres
- elasticsearch
- kibana
- redis
- celery
- mailcatcher
ports:
- "8000:8000"
node:
image: node:22-bookworm
working_dir: /app
command: >
sh -c "npm install && npm start"
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
ports:
- "3000:3000"
- "3001:3001"
environment:
- NODE_ENV=development
depends_on:
- web
beat:
build:
context: .
target: dev
command: ./bin/run-celery-beat.sh
env_file: .env
volumes:
- ./:/app:delegated
- /app/.venv
user: ${UID:-kitsune}
depends_on:
- postgres
- redis
profiles:
- beat
celery:
build:
context: .
target: dev
command: bash -c "source /app/.venv/bin/activate && python -m celery -A kitsune worker -l info -n default@%h -Q celery,email"
env_file: .env
volumes:
- ./:/app:delegated
- /app/.venv
user: ${UID:-1000}
depends_on:
- postgres
- redis
flower:
build:
context: .
target: dev
command: bash -c "source /app/.venv/bin/activate && python -m celery -A kitsune flower"
env_file: .env
volumes:
- ./:/app:delegated
- /app/.venv
user: ${UID:-kitsune}
depends_on:
- redis
- celery
ports:
- "5555:5555"
profiles:
- beat
postgres:
image: postgres:15.3
shm_size: 1G
environment:
- POSTGRES_PASSWORD=kitsune
- POSTGRES_USER=kitsune
- POSTGRES_DB=kitsune
- LC_ALL=C.UTF-8
ports:
- "5432:5432"
volumes:
- pgvolume:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.2.2
environment:
- discovery.type=single-node
- LOG4J_FORMAT_MSG_NO_LOOKUPS=true
- xpack.security.enabled=false
- action.destructive_requires_name=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- network.host=0.0.0.0
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./kitsune/search/dictionaries/synonyms:/usr/share/elasticsearch/config/synonyms
kibana:
image: docker.elastic.co/kibana/kibana:9.2.2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
redis:
image: redis:3
mailcatcher:
image: schickling/mailcatcher
ports:
- "1080:1080"
volumes:
pgvolume:
node_modules: