2017-07-14 14:42:30 +03:00
|
|
|
services:
|
|
|
|
web:
|
2021-12-07 14:57:44 +03:00
|
|
|
build:
|
|
|
|
context: .
|
2021-12-29 15:45:21 +03:00
|
|
|
target: base
|
2022-01-07 19:03:33 +03:00
|
|
|
command: ./bin/run-prod.sh
|
2018-10-30 22:44:11 +03:00
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./:/app:delegated
|
2017-11-17 11:36:03 +03:00
|
|
|
user: ${UID:-kitsune}
|
2019-07-01 11:11:08 +03:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2017-07-14 14:42:30 +03:00
|
|
|
depends_on:
|
2023-11-10 00:33:32 +03:00
|
|
|
- postgres
|
2022-10-28 18:20:59 +03:00
|
|
|
- elasticsearch
|
2020-09-09 18:36:37 +03:00
|
|
|
- kibana
|
2017-07-14 14:42:30 +03:00
|
|
|
- redis
|
2020-06-05 13:21:55 +03:00
|
|
|
- celery
|
2020-07-17 20:54:05 +03:00
|
|
|
- mailcatcher
|
2017-11-15 10:33:39 +03:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2018-10-30 22:44:11 +03:00
|
|
|
|
2023-11-10 00:33:32 +03:00
|
|
|
postgres:
|
|
|
|
image: postgres:15.3
|
2017-07-14 14:42:30 +03:00
|
|
|
environment:
|
2023-11-10 00:33:32 +03:00
|
|
|
- POSTGRES_PASSWORD=kitsune
|
|
|
|
- POSTGRES_USER=kitsune
|
|
|
|
- POSTGRES_DB=kitsune
|
|
|
|
- LC_ALL=C.UTF-8
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2017-07-14 14:42:30 +03:00
|
|
|
volumes:
|
2023-11-10 00:33:32 +03:00
|
|
|
- pgvolume:/var/lib/postgresql/data
|
2017-07-14 14:42:30 +03:00
|
|
|
|
2022-10-28 18:20:59 +03:00
|
|
|
elasticsearch:
|
2021-03-01 21:01:44 +03:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
|
2020-07-27 15:58:08 +03:00
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
2021-12-13 16:07:25 +03:00
|
|
|
- LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
2020-08-06 16:37:50 +03:00
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9300:9300"
|
2021-03-01 21:01:44 +03:00
|
|
|
volumes:
|
|
|
|
- ./kitsune/search/dictionaries/synonyms:/usr/share/elasticsearch/config/synonyms
|
2020-07-27 15:58:08 +03:00
|
|
|
|
2020-08-20 14:40:08 +03:00
|
|
|
kibana:
|
2021-03-01 21:01:44 +03:00
|
|
|
image: docker.elastic.co/kibana/kibana:7.10.2
|
2020-08-20 14:40:08 +03:00
|
|
|
ports:
|
|
|
|
- 5601:5601
|
|
|
|
environment:
|
2022-10-28 18:20:59 +03:00
|
|
|
ELASTICSEARCH_URL: http://elasticsearch:9200
|
|
|
|
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
|
2020-08-20 14:40:08 +03:00
|
|
|
|
2017-07-14 14:42:30 +03:00
|
|
|
redis:
|
2017-11-15 10:33:39 +03:00
|
|
|
image: redis:3
|
2017-07-14 14:42:30 +03:00
|
|
|
|
2020-06-05 13:21:55 +03:00
|
|
|
celery:
|
2021-12-07 14:57:44 +03:00
|
|
|
build:
|
|
|
|
context: .
|
2021-12-29 15:45:21 +03:00
|
|
|
target: base
|
2023-12-06 00:32:14 +03:00
|
|
|
command: celery -A kitsune worker -l info -n default@%h -Q celery,priority
|
2020-07-01 13:37:06 +03:00
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./:/app:delegated
|
|
|
|
user: ${UID:-kitsune}
|
|
|
|
depends_on:
|
2023-11-10 00:33:32 +03:00
|
|
|
- postgres
|
2020-07-01 13:37:06 +03:00
|
|
|
- redis
|
|
|
|
|
2020-07-17 20:54:05 +03:00
|
|
|
mailcatcher:
|
|
|
|
image: schickling/mailcatcher
|
|
|
|
ports:
|
|
|
|
- "1080:1080"
|
|
|
|
|
2017-07-14 14:42:30 +03:00
|
|
|
volumes:
|
2023-11-10 00:33:32 +03:00
|
|
|
pgvolume:
|