forked from mozilla/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 1.7 KB
/
docker-compose.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
70
71
72
73
74
75
76
77
78
79
80
version: "3.8"
services:
web:
build:
context: .
target: base
command: ./bin/run-prod.sh
env_file: .env
volumes:
- ./:/app:delegated
user: ${UID:-kitsune}
stdin_open: true
tty: true
depends_on:
- mariadb
- elasticsearch
- kibana
- redis
- celery
- mailcatcher
ports:
- "8000:8000"
mariadb:
image: mariadb:10.7
environment:
- MYSQL_ROOT_PASSWORD=kitsune
- MYSQL_USER=kitsune
- MYSQL_PASSWORD=kitsune
- MYSQL_DATABASE=kitsune
entrypoint:
- docker-entrypoint.sh
- --character-set-server=utf8
- --collation-server=utf8_unicode_ci
- --sql-mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
volumes:
- mysqlvolume:/var/lib/mysql
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
environment:
- discovery.type=single-node
- LOG4J_FORMAT_MSG_NO_LOOKUPS=true
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./kitsune/search/dictionaries/synonyms:/usr/share/elasticsearch/config/synonyms
kibana:
image: docker.elastic.co/kibana/kibana:7.10.2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
redis:
image: redis:3
celery:
build:
context: .
target: base
command: celery -A kitsune worker -l info -n default@%h
env_file: .env
volumes:
- ./:/app:delegated
user: ${UID:-kitsune}
depends_on:
- mariadb
- redis
mailcatcher:
image: schickling/mailcatcher
ports:
- "1080:1080"
volumes:
mysqlvolume: