forked from Nordicwebteamvue/vsf-storyblok-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (84 loc) · 3.5 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2.4'
services:
elasticsearch:
build: .docker/vue-storefront-api/docker/elasticsearch/
volumes:
- >-
./.docker/vue-storefront-api/docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./.docker/api/elasticsearch-healthcheck.sh:/healthcheck.sh
- 'esdat1:/usr/share/elasticsearch/data'
ports:
- '9200:9200'
- '9300:9300'
environment:
ES_JAVA_OPTS: '-Xmx512m -Xms512m'
healthcheck:
test: ['CMD', 'sh', '/healthcheck.sh']
redis:
image: 'redis:4-alpine'
ports:
- '6379:6379'
volumes:
- ./.docker/api/redis-healthcheck.sh:/healthcheck.sh
healthcheck:
test: ['CMD', 'sh', '/healthcheck.sh']
storefront-api:
build:
context: .docker/vue-storefront-api
dockerfile: docker/vue-storefront-api/Dockerfile
env_file: .docker/vue-storefront-api/docker/vue-storefront-api/default.env
environment:
VS_ENV: dev
ports:
- '8080:8080'
tmpfs:
- /var/www/dist
volumes:
- './.docker/vue-storefront-api/babel.config.js:/var/www/babel.config.js'
- './.docker/vue-storefront-api/config:/var/www/config'
- './.docker/vue-storefront-api/ecosystem.json:/var/www/ecosystem.json'
- './.docker/vue-storefront-api/migrations:/var/www/migrations:delegated'
- './.docker/vue-storefront-api/package.json:/var/www/package.json'
- './.docker/vue-storefront-api/scripts:/var/www/scripts:delegated'
- './.docker/vue-storefront-api/src:/var/www/src:delegated'
- './.docker/vue-storefront-api/var:/var/www/var:delegated'
- './.docker/api/config.json:/var/www/config/local.json'
- './.docker/api/db.js:/var/www/src/db.js'
- >-
./packages/vsf-storyblok-extension:/var/www/src/api/extensions/vsf-storyblok-extension:delegated
healthcheck:
test: ['CMD', 'curl', '-f', '-s', '-S', 'http://localhost:8080/api']
storefront-ui:
build:
context: .docker/vue-storefront
dockerfile: docker/vue-storefront/Dockerfile
env_file: .docker/vue-storefront/docker/vue-storefront/default.env
environment:
VS_ENV: dev
ports:
- '3000:3000'
tmpfs:
- /var/www/dist
volumes:
- './.docker/vue-storefront/babel.config.js:/var/www/babel.config.js'
- './.docker/vue-storefront/config:/var/www/config'
- './.docker/vue-storefront/core:/var/www/core:delegated'
- './.docker/vue-storefront/ecosystem.json:/var/www/ecosystem.json'
- './.docker/vue-storefront/.eslintignore:/var/www/.eslintignore'
- './.docker/vue-storefront/.eslintrc.js:/var/www/.eslintrc.js'
- './.docker/vue-storefront/lerna.json:/var/www/lerna.json'
- './.docker/vue-storefront/tsconfig.json:/var/www/tsconfig.json'
- './.docker/vue-storefront/tsconfig-build.json:/var/www/tsconfig-build.json'
- './.docker/vue-storefront/shims.d.ts:/var/www/shims.d.ts'
- './.docker/vue-storefront/package.json:/var/www/package.json'
- './.docker/vue-storefront/src:/var/www/src:delegated'
- './.docker/vue-storefront/var:/var/www/var:delegated'
- './.docker/frontend/config.json:/var/www/config/local.json'
- './.docker/frontend/modules.ts:/var/www/src/modules/index.ts'
- './theme:/var/www/src/themes/default'
- >-
./packages/vsf-storyblok-module:/var/www/src/modules/vsf-storyblok-module:delegated
healthcheck:
test:
['CMD', 'wget', '-q', '--tries=1', '--spider', 'http://localhost:3000']
start_period: 30m