This repository was archived by the owner on May 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +194
-22
lines changed Expand file tree Collapse file tree 10 files changed +194
-22
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,4 @@ services:
2626 - /var/www/dist
2727 ports :
2828 - ' 8080:8080'
29- networks :
30- - some-net
31-
32- networks :
33- some-net :
34- driver : bridge
29+
Original file line number Diff line number Diff line change @@ -8,9 +8,3 @@ services:
88 - ./docker/varnish/config.vcl:/usr/local/etc/varnish/default.vcl
99 ports :
1010 - ' 1234:80'
11- networks :
12- - vuestorefrontapi_some-net
13-
14- networks :
15- vuestorefrontapi_some-net :
16- external : true
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ services:
1717 - cluster.name=docker-cluster
1818 - bootstrap.memory_lock=true
1919 - " ES_JAVA_OPTS=-Xmx512m -Xms512m"
20- networks :
21- - vuestorefrontapi_some-net
2220
2321 kibana :
2422 build : docker/kibana/
@@ -28,19 +26,11 @@ services:
2826 - ' 5601:5601'
2927 depends_on :
3028 - es1
31- networks :
32- - vuestorefrontapi_some-net
3329
3430 redis :
3531 image : ' redis:4-alpine'
3632 ports :
3733 - ' 6379:6379'
38- networks :
39- - vuestorefrontapi_some-net
4034
4135volumes :
4236 esdat1 :
43-
44- networks :
45- vuestorefrontapi_some-net :
46- external : true
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ networks:
2121 some-net:
2222 driver: bridge
2323` ` `
24+ You can find Docker Compose files with applied network settings inside docker/varnish/docker-compose
2425
2526# ## How does it work?
26271. I add output tags to the VSF-API response :
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ app :
4+ # image: divante/vue-storefront-api:latest
5+ build :
6+ context : .
7+ dockerfile : docker/vue-storefront-api/Dockerfile
8+ depends_on :
9+ - es1
10+ - redis
11+ env_file : docker/vue-storefront-api/default.env
12+ environment :
13+ VS_ENV : dev
14+ volumes :
15+ - ' ./config:/var/www/config'
16+ - ' ./ecosystem.json:/var/www/ecosystem.json'
17+ - ' ./migrations:/var/www/migrations'
18+ - ' ./package.json:/var/www/package.json'
19+ - ' ./babel.config.js:/var/www/babel.config.js'
20+ - ' ./tsconfig.json:/var/www/tsconfig.json'
21+ - ' ./nodemon.json:/var/www/nodemon.json'
22+ - ' ./scripts:/var/www/scripts'
23+ - ' ./src:/var/www/src'
24+ - ' ./var:/var/www/var'
25+ tmpfs :
26+ - /var/www/dist
27+ ports :
28+ - ' 8080:8080'
29+ networks :
30+ - some-net
31+
32+ networks :
33+ some-net :
34+ driver : bridge
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ varnish :
4+ build :
5+ context : .
6+ dockerfile : varnish/Dockerfile
7+ volumes :
8+ - ./docker/varnish/config.vcl:/usr/local/etc/varnish/default.vcl
9+ ports :
10+ - ' 1234:80'
11+ networks :
12+ - vuestorefrontapi_some-net
13+
14+ networks :
15+ vuestorefrontapi_some-net :
16+ external : true
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ es1 :
4+ container_name : elasticsearch
5+ build : docker/elasticsearch/
6+ ulimits :
7+ memlock :
8+ soft : -1
9+ hard : -1
10+ volumes :
11+ - ./docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
12+ ports :
13+ - ' 9200:9200'
14+ - ' 9300:9300'
15+ environment :
16+ - discovery.type=single-node
17+ - cluster.name=docker-cluster
18+ - bootstrap.memory_lock=true
19+ - " ES_JAVA_OPTS=-Xmx512m -Xms512m"
20+ networks :
21+ - vuestorefrontapi_some-net
22+
23+ kibana :
24+ build : docker/kibana/
25+ volumes :
26+ - ./docker/kibana/config/:/usr/share/kibana/config:ro
27+ ports :
28+ - ' 5601:5601'
29+ depends_on :
30+ - es1
31+ networks :
32+ - vuestorefrontapi_some-net
33+
34+ redis :
35+ image : ' redis:4-alpine'
36+ ports :
37+ - ' 6379:6379'
38+ networks :
39+ - vuestorefrontapi_some-net
40+
41+ volumes :
42+ esdat1 :
43+
44+ networks :
45+ vuestorefrontapi_some-net :
46+ external : true
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ app :
4+ # image: divante/vue-storefront-api:latest
5+ build :
6+ context : .
7+ dockerfile : docker/vue-storefront-api/Dockerfile
8+ depends_on :
9+ - es1
10+ - redis
11+ env_file : docker/vue-storefront-api/default.env
12+ environment :
13+ VS_ENV : dev
14+ volumes :
15+ - ' ./config:/var/www/config'
16+ - ' ./ecosystem.json:/var/www/ecosystem.json'
17+ - ' ./migrations:/var/www/migrations'
18+ - ' ./package.json:/var/www/package.json'
19+ - ' ./babel.config.js:/var/www/babel.config.js'
20+ - ' ./tsconfig.json:/var/www/tsconfig.json'
21+ - ' ./nodemon.json:/var/www/nodemon.json'
22+ - ' ./scripts:/var/www/scripts'
23+ - ' ./src:/var/www/src'
24+ - ' ./var:/var/www/var'
25+ tmpfs :
26+ - /var/www/dist
27+ ports :
28+ - ' 8080:8080'
29+ networks :
30+ - some-net
31+
32+ networks :
33+ some-net :
34+ driver : bridge
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ varnish :
4+ build :
5+ context : .
6+ dockerfile : varnish/Dockerfile
7+ volumes :
8+ - ./docker/varnish/config.vcl:/usr/local/etc/varnish/default.vcl
9+ ports :
10+ - ' 1234:80'
11+ networks :
12+ - vuestorefrontapi_some-net
13+
14+ networks :
15+ vuestorefrontapi_some-net :
16+ external : true
Original file line number Diff line number Diff line change 1+ version : ' 3.0'
2+ services :
3+ es1 :
4+ container_name : elasticsearch
5+ build : docker/elasticsearch/
6+ ulimits :
7+ memlock :
8+ soft : -1
9+ hard : -1
10+ volumes :
11+ - ./docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
12+ ports :
13+ - ' 9200:9200'
14+ - ' 9300:9300'
15+ environment :
16+ - discovery.type=single-node
17+ - cluster.name=docker-cluster
18+ - bootstrap.memory_lock=true
19+ - " ES_JAVA_OPTS=-Xmx512m -Xms512m"
20+ networks :
21+ - vuestorefrontapi_some-net
22+
23+ kibana :
24+ build : docker/kibana/
25+ volumes :
26+ - ./docker/kibana/config/:/usr/share/kibana/config:ro
27+ ports :
28+ - ' 5601:5601'
29+ depends_on :
30+ - es1
31+ networks :
32+ - vuestorefrontapi_some-net
33+
34+ redis :
35+ image : ' redis:4-alpine'
36+ ports :
37+ - ' 6379:6379'
38+ networks :
39+ - vuestorefrontapi_some-net
40+
41+ volumes :
42+ esdat1 :
43+
44+ networks :
45+ vuestorefrontapi_some-net :
46+ external : true
You can’t perform that action at this time.
0 commit comments