-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 2.57 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
services:
test-database:
container_name: test-database
image: mariadb # Because it's got less problematic Arm64 support
# command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: omm_test
MYSQL_USER: omm_test
MYSQL_PASSWORD: omm_test
volumes:
- ./docker/data/test_mariadb:/var/lib/mysql:rw
database:
container_name: database
image: mariadb # Because it's got less problematic Arm64 support
# command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: app
MYSQL_USER: symfony
MYSQL_PASSWORD: ChangeMe
volumes:
- ./docker/data/mariadb:/var/lib/mysql:rw
# TODO: Figure out what these docker values should be once we've got
# more of a docker strategy
docker-database:
container_name: docker-database
image: mariadb # Because it's got less problematic Arm64 support
# command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: omm_docker
MYSQL_USER: omm_docker
MYSQL_PASSWORD: omm_docker
volumes:
- ./docker/data/docker_mariadb:/var/lib/mysql:rw
beanstalkd:
container_name: beanstalkd
image: maateen/docker-beanstalkd
ports:
- 11300:11300
redis:
container_name: redis
image: redis:8.4-alpine
command: ["redis-server", "--maxmemory", "256mb", "--maxmemory-policy", "allkeys-lru"]
ports:
- 6379:6379
volumes:
- ./docker/data/redis:/data
# Mostly nicked from https://medium.com/@TimvanBaarsen/how-to-run-an-elasticsearch-7-x-single-node-cluster-for-local-development-using-docker-compose-2b7ab73d8b82
elasticsearch:
container_name: es-container
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.22
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- cluster.routing.allocation.disk.watermark.low=100%
- cluster.routing.allocation.disk.watermark.high=100%
- cluster.routing.allocation.disk.watermark.flood_stage=100%
# Local ports chosen by https://www.random.org/integers/?num=1&min=5001&max=49151&col=5&base=10&format=html&rnd=new
ports:
- 8856:9200
- 19205:9300
volumes:
- ./docker/data/elasticsearch:/usr/share/elasticsearch/data
# TODO: Is this doing anything at all? We've not referenced these named volumes, have we?
volumes:
db-data:
es-data:
driver: local