FRESH-1738 #12 add elasticsearch for docker-compose, including configs for app and webapi
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
db:
|
|
build: db
|
|
restart: always
|
|
volumes:
|
|
- ./volumes/db/data:/var/lib/postgresql/data
|
|
- ./volumes/db/log:/var/log/postgresql
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- METASFRESH_USERNAME=metasfresh
|
|
- METASFRESH_PASSWORD=metasfresh
|
|
- METASFRESH_DBNAME=metasfresh
|
|
- DB_SYSPASS=System
|
|
app:
|
|
build: app
|
|
hostname: app
|
|
links:
|
|
- db:db
|
|
- search:search
|
|
restart: always
|
|
volumes:
|
|
- ./volumes/app/log:/opt/metasfresh/log:rw
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- METASFRESH_HOME=/opt/metasfresh
|
|
webapi:
|
|
build: webapi
|
|
links:
|
|
- app:app
|
|
- db:db
|
|
- search:search
|
|
restart: always
|
|
volumes:
|
|
- ./volumes/webapi/log:/opt/metasfresh-webui-api/log:rw
|
|
- /etc/localtime:/etc/localtime:ro
|
|
webui:
|
|
build: webui
|
|
links:
|
|
- webapi:webapi
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
restart: always
|
|
search:
|
|
build: search
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
cap_add:
|
|
- IPC_LOCK
|
|
volumes:
|
|
- ./volumes/search/data:/usr/share/elasticsearch/data
|
|
environment:
|
|
- "ES_JAVA_OPTS=-Xms128M -Xmx256m"
|
|
restart: always
|