1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

feat: Add docker compose to deploy all stack. (#711)

* feat: Add docker compose to deploy all stack.

* change names of containers to lowercase
This commit is contained in:
Edwin Betancourt 2021-04-02 18:18:00 -04:00 committed by GitHub
parent d50a57d0fa
commit e2d23df27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 119 additions and 0 deletions

View File

@ -217,6 +217,13 @@ npm run lint -- --fix
Vaya a [Documentación](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) para mayor información.
## Contenedor Docker
```bash
# requiere permisos de super usuario del sistema operativo ('su' o 'sudo')
docker-componer up
```
## Registro de Cambios
Los cambios detallados por cada liberación se encuentran en [notas de liberación](https://github.com/adempiere/adempiere-vue/releases).

View File

@ -219,6 +219,13 @@ npm run lint -- --fix
Refer to [Documentation](https://adempiere.github.io/adempiere-vue-site/guide/essentials/deploy.html#build) for more information
## Docker Container
```bash
# requires superuser permissions of the operating system ('su' or 'sudo')
docker-compose up
```
## Changelog
Detailed changes for each release are documented in the [release notes](https://github.com/adempiere/adempiere-vue/releases).

16
config/elasticsearch.yml Normal file
View File

@ -0,0 +1,16 @@
---
## Default Elasticsearch configuration from elasticsearch-docker.
## from https://github.com/elastic/elasticsearch-docker/blob/master/build/elasticsearch/elasticsearch.yml
#
cluster.name: "docker-cluster"
network.host: 0.0.0.0
# minimum_master_nodes need to be explicitly set when bound on a public IP
# set to 1 to allow single node clusters
# Details: https://github.com/elastic/elasticsearch/pull/17288
discovery.zen.minimum_master_nodes: 1
## Use single node discovery in order to disable production mode and avoid bootstrap checks
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
#
discovery.type: single-node

89
docker-compose.yaml Normal file
View File

@ -0,0 +1,89 @@
version: '3.7'
services:
grpc-backend:
image: erpya/adempiere-grpc-all-in-one
container_name: adempiere-backend
stdin_open: true
tty: true
environment:
- SERVER_PORT=50059
- SERVICES_ENABLED=access; business; core; dashboarding; dictionary; enrollment; log; ui; workflow; store; pos; updater;
- SERVER_LOG_LEVEL=WARNING
- DB_HOST=postgres_host
- DB_PORT=5432
- DB_NAME=adempiere
- DB_USER=adempiere
- DB_PASSWORD=adempiere
- DB_TYPE=PostgreSQL
ports:
- 50059:50059
redis:
image: redis:4-alpine
container_name: adempiere-redis
stdin_open: true
tty: true
ports:
- '6379:6379'
es7:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
container_name: adempiere-eslastic-search
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- '9200:9200'
- '9300:9300'
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xmx512m -Xms512m
api-rest:
image: erpya/proxy-adempiere-api
container_name: adempiere-proxy
depends_on:
- es7
- redis
stdin_open: true
tty: true
environment:
- SERVER_PORT=8085
- AD_DEFAULT_HOST=adempiere-backend
- AD_DEFAULT_PORT=50059
- ES_HOST=adempiere-eslastic-search
- ES_PORT=9200
- VS_ENV=dev
- INDEX=vue_storefront_catalog
- RESTORE_DB=N
ports:
- 8085:8085
vue-app:
image: erpya/adempiere-vue
container_name: adempiere-frontend
stdin_open: true
tty: true
environment:
- API_URL=http://adempiere-proxy:8085
ports:
- 9526:80
e-commerce:
image: erpya/adempiere-ecommerce
container_name: adempiere-ecommerce
stdin_open: true
tty: true
environment:
- SERVER_PORT=3000
- API_URL=http://adempiere-proxy:8085
- STORE_INDEX=vue_storefront_catalog
- VS_ENV=dev
ports:
- 3000:3000