-
Notifications
You must be signed in to change notification settings - Fork 101
/
docker-compose.datastores.yml
58 lines (53 loc) · 1.3 KB
/
docker-compose.datastores.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
version: "3.9"
services:
db:
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-db:$PHRASEANET_DOCKER_TAG
build: ./docker/db
restart: on-failure
profiles: ["db"]
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_MAX_ALLOWED_PACKET
- MYSQL_MAX_CONNECTION
- MYSQL_LONG_QUERY_TIME
- MYSQL_SLOW_QUERY_LOG
- MYSQL_QUERY_CACHE_LIMIT
- MYSQL_QUERY_CACHE_SIZE
- MYSQL_KEY_BUFFER_SIZE
volumes:
- ${PHRASEANET_DB_DIR}:/var/lib/mysql
networks:
- internal
rabbitmq:
image: rabbitmq:3.8.34-management
profiles: ["rabbitmq"]
restart: on-failure
hostname: $RABBITMQ_HOSTNAME
environment:
- RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS
volumes:
- rabbitmq_vol:/var/lib/rabbitmq
networks:
- internal
redis:
image: redis
profiles: ["redis"]
restart: on-failure
networks:
- internal
redis-session:
image: redis
profiles: ["redis-session"]
restart: on-failure
networks:
- internal
elasticsearch:
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-elasticsearch:$PHRASEANET_DOCKER_TAG
profiles: ["elasticsearch"]
build: ./docker/elasticsearch
restart: on-failure
volumes:
- ${PHRASEANET_ELASTICSEARCH_DIR}:/usr/share/elasticsearch/data
networks:
- internal