-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-ci.yml
46 lines (46 loc) · 1.06 KB
/
docker-compose-ci.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
version: '2'
services:
cms:
build: .
links:
- db
- elasticsearch
ports:
- 3000:3000
command: test
env_file:
- env-example
environment:
VIRTUAL_HOST: cms.prx.docker
LOCAL_ENV: "true"
DB_ENV_MYSQL_USER: root
DB_ENV_MYSQL_PASSWORD: password
DB_PORT_3306_TCP_ADDR: db
DB_PORT_3306_TCP_PORT: "3306"
ELASTICSEARCH_URL: http://elasticsearch:9200
db:
image: mysql:8.0.2
environment:
MYSQL_DATABASE: cms_test
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
command: mysqld --log_error_verbosity=1 --default-authentication-plugin=mysql_native_password
elasticsearch:
image: elasticsearch:6.4.3
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
volumes:
esdata1: