Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 3af5292

Browse files
author
Fifciuu
committed
Update
1 parent f5fe6cf commit 3af5292

10 files changed

+194
-22
lines changed

docker-compose.nodejs.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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+

docker-compose.varnish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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

docker-compose.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

4135
volumes:
4236
esdat1:
43-
44-
networks:
45-
vuestorefrontapi_some-net:
46-
external: true

docker/varnish/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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?
2627
1. I add output tags to the VSF-API response:
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

0 commit comments

Comments
 (0)