-
Notifications
You must be signed in to change notification settings - Fork 43
/
compose.yaml
31 lines (28 loc) · 1013 Bytes
/
compose.yaml
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
version: '3'
services:
###> doctrine/doctrine-bundle ###
database:
# arm compatible mysql docker image
image: mysql/mysql-server:${MYSQL_VERSION:-8.0} # arm and x86/x64 compatible mysql image
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-su_demo}
# You should definitely change the password in production
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-ChangeMe}
MYSQL_ROOT_HOST: '%'
volumes:
- database-data:/var/lib/mysql
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/mysql:rw
###< doctrine/doctrine-bundle ###
elasticsearch:
image: elasticsearch:7.17.6
environment:
discovery.type: single-node
xpack.security.enabled: 'false'
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
volumes:
###> doctrine/doctrine-bundle ###
database-data:
###< doctrine/doctrine-bundle ###
elasticsearch-data: