-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (67 loc) · 1.24 KB
/
docker-compose.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
59
60
61
62
63
64
65
66
67
version: '2'
networks:
cms-net:
driver: bridge
volumes:
esdata1:
services:
cms:
build: .
tty: true
stdin_open: true
volumes:
- .:/app
depends_on:
- db
- elasticsearch
ports:
- "3002:3000"
command: web
env_file:
- .env
environment:
VIRTUAL_HOST: cms.prx.docker
LOCAL_ENV: "true"
networks:
- cms-net
worker:
image: cmsprxorg_cms
volumes:
- .:/app
env_file:
- .env
environment:
LOCAL_ENV: "true"
depends_on:
- db
- elasticsearch
command: worker
networks:
- cms-net
db:
image: mysql:8.0.12
env_file:
- .env
expose:
- "3306"
command: mysqld --log_error_verbosity=1 --default-authentication-plugin=mysql_native_password
networks:
- cms-net
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
networks:
- cms-net