Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2017110273
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2021-05-13 00:50:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
720b2af2eaef809fa4b12f1c5d157f4ed75417db
720b2af2
1 parent
71c395fa
create docker-compose.yml and Dockerfile
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
Dockerfile
docker-compose.yml
Dockerfile
0 → 100644
View file @
720b2af
FROM
node:14.16.1-alpine
WORKDIR
/app
ENV
PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN
npm install
RUN
npm install react-scripts@3.0.1 -g
CMD
["npm", "start"]
docker-compose.yml
View file @
720b2af
version
:
'
3.8'
services
:
elasticsearch
:
image
:
docker.elastic.co/elasticsearch/elasticsearch:7.12.1
container_name
:
elasticsearch
environment
:
-
"
discovery.type=single-node"
ports
:
-
9200:9200
volumes
:
-
es_data:/usr/share/elasticsearch/data
kibana
:
image
:
docker.elastic.co/kibana/kibana:7.12.1
container_name
:
kibana
environment
:
-
ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports
:
-
5601:5601
depends_on
:
-
elasticsearch
web
:
container_name
:
react
build
:
context
:
.
dockerfile
:
Dockerfile
volumes
:
-
"
.:/app"
-
"
/app/node_modules"
ports
:
-
"
3001:3000"
environment
:
-
NODE_ENV=development
stdin_open
:
true
tty
:
true
volumes
:
es_data
:
driver
:
local
...
...
Please
register
or
login
to post a comment