Skip to content

Commit e2d23df

Browse files
feat: Add docker compose to deploy all stack. (#711)
* feat: Add docker compose to deploy all stack. * change names of containers to lowercase
1 parent d50a57d commit e2d23df

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed

README.es.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ npm run lint -- --fix
217217

218218
Vaya a [Documentación](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) para mayor información.
219219

220+
## Contenedor Docker
221+
222+
```bash
223+
# requiere permisos de super usuario del sistema operativo ('su' o 'sudo')
224+
docker-componer up
225+
```
226+
220227
## Registro de Cambios
221228

222229
Los cambios detallados por cada liberación se encuentran en [notas de liberación](https://github.com/adempiere/adempiere-vue/releases).

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ npm run lint -- --fix
219219

220220
Refer to [Documentation](https://adempiere.github.io/adempiere-vue-site/guide/essentials/deploy.html#build) for more information
221221

222+
## Docker Container
223+
224+
```bash
225+
# requires superuser permissions of the operating system ('su' or 'sudo')
226+
docker-compose up
227+
```
228+
222229
## Changelog
223230

224231
Detailed changes for each release are documented in the [release notes](https://github.com/adempiere/adempiere-vue/releases).

config/elasticsearch.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
## Default Elasticsearch configuration from elasticsearch-docker.
3+
## from https://github.com/elastic/elasticsearch-docker/blob/master/build/elasticsearch/elasticsearch.yml
4+
#
5+
cluster.name: "docker-cluster"
6+
network.host: 0.0.0.0
7+
8+
# minimum_master_nodes need to be explicitly set when bound on a public IP
9+
# set to 1 to allow single node clusters
10+
# Details: https://github.com/elastic/elasticsearch/pull/17288
11+
discovery.zen.minimum_master_nodes: 1
12+
13+
## Use single node discovery in order to disable production mode and avoid bootstrap checks
14+
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
15+
#
16+
discovery.type: single-node

docker-compose.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
version: '3.7'
2+
3+
services:
4+
grpc-backend:
5+
image: erpya/adempiere-grpc-all-in-one
6+
container_name: adempiere-backend
7+
stdin_open: true
8+
tty: true
9+
environment:
10+
- SERVER_PORT=50059
11+
- SERVICES_ENABLED=access; business; core; dashboarding; dictionary; enrollment; log; ui; workflow; store; pos; updater;
12+
- SERVER_LOG_LEVEL=WARNING
13+
- DB_HOST=postgres_host
14+
- DB_PORT=5432
15+
- DB_NAME=adempiere
16+
- DB_USER=adempiere
17+
- DB_PASSWORD=adempiere
18+
- DB_TYPE=PostgreSQL
19+
ports:
20+
- 50059:50059
21+
22+
redis:
23+
image: redis:4-alpine
24+
container_name: adempiere-redis
25+
stdin_open: true
26+
tty: true
27+
ports:
28+
- '6379:6379'
29+
30+
es7:
31+
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
32+
container_name: adempiere-eslastic-search
33+
ulimits:
34+
memlock:
35+
soft: -1
36+
hard: -1
37+
volumes:
38+
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
39+
ports:
40+
- '9200:9200'
41+
- '9300:9300'
42+
environment:
43+
- discovery.type=single-node
44+
- cluster.name=docker-cluster
45+
- bootstrap.memory_lock=true
46+
- ES_JAVA_OPTS=-Xmx512m -Xms512m
47+
48+
api-rest:
49+
image: erpya/proxy-adempiere-api
50+
container_name: adempiere-proxy
51+
depends_on:
52+
- es7
53+
- redis
54+
stdin_open: true
55+
tty: true
56+
environment:
57+
- SERVER_PORT=8085
58+
- AD_DEFAULT_HOST=adempiere-backend
59+
- AD_DEFAULT_PORT=50059
60+
- ES_HOST=adempiere-eslastic-search
61+
- ES_PORT=9200
62+
- VS_ENV=dev
63+
- INDEX=vue_storefront_catalog
64+
- RESTORE_DB=N
65+
ports:
66+
- 8085:8085
67+
68+
vue-app:
69+
image: erpya/adempiere-vue
70+
container_name: adempiere-frontend
71+
stdin_open: true
72+
tty: true
73+
environment:
74+
- API_URL=http://adempiere-proxy:8085
75+
ports:
76+
- 9526:80
77+
78+
e-commerce:
79+
image: erpya/adempiere-ecommerce
80+
container_name: adempiere-ecommerce
81+
stdin_open: true
82+
tty: true
83+
environment:
84+
- SERVER_PORT=3000
85+
- API_URL=http://adempiere-proxy:8085
86+
- STORE_INDEX=vue_storefront_catalog
87+
- VS_ENV=dev
88+
ports:
89+
- 3000:3000

0 commit comments

Comments
 (0)