mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
commit
07b4a5b11c
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules/*
|
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM node:14.2.0-alpine as ui-builder
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
|
||||
COPY package.json /app/package.json
|
||||
|
||||
RUN yarn
|
||||
|
||||
RUN yarn global add @vue/cli
|
||||
|
||||
COPY . /app
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=ui-builder /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
12
README.md
12
README.md
|
@ -4,7 +4,7 @@ Freqtrade UI build with [Vue.js](https://vuejs.org/) and [boostrap-vue](https://
|
|||
|
||||
## WARNING
|
||||
|
||||
This project is still in it's early stages, and is not yet stable nor recommended to be used for productiion usages.
|
||||
This project is still in it's early stages (consider it early-alpha), and is not yet stable nor recommended to be used for production usages.
|
||||
|
||||
It will require Freqtrade to be running on the same host with the API enabled under (`localhost:8081`). This port can be changed in `vue.config.js`.
|
||||
|
||||
|
@ -34,6 +34,16 @@ yarn build
|
|||
yarn lint
|
||||
```
|
||||
|
||||
### Build and run docker version
|
||||
|
||||
```
|
||||
docker-compose build
|
||||
docker-compose up -d
|
||||
|
||||
# Access using http://localhost:8080/
|
||||
```
|
||||
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
|
||||
|
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
version: '3.8'
|
||||
services:
|
||||
frequi:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: "./Dockerfile"
|
||||
image: frequi
|
||||
# image: freqtradeorg/frequi:master
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:80"
|
Loading…
Reference in New Issue
Block a user