parent
46faba824b
commit
42d617b410
4 changed files with 41 additions and 3 deletions
@ -0,0 +1,16 @@ |
||||
FROM node:16 |
||||
|
||||
WORKDIR /opt |
||||
ENV NODE_ENV production |
||||
|
||||
COPY package.json /opt/package.json |
||||
|
||||
RUN npm install --production |
||||
|
||||
COPY .env /opt/.env |
||||
COPY . /opt |
||||
COPY ./node_modules/@fatchan/haproxy-sdk/lib/_utils.js /opt/node_modules/@fatchan/haproxy-sdk/lib/_utils.js |
||||
|
||||
RUN npm run build |
||||
|
||||
CMD ["npm","start"] |
@ -0,0 +1,22 @@ |
||||
version: '3.7' |
||||
services: |
||||
haproxy_panel_next: |
||||
restart: always |
||||
build: . |
||||
ports: |
||||
- "10.0.0.44:3000:3000" |
||||
environment: |
||||
- NODE_ENV=production |
||||
volumes: |
||||
- .:/opt |
||||
haproxy_panel_mongo: |
||||
restart: always |
||||
image: mongo:latest |
||||
# volumes: |
||||
# - mongodb_data_container:/data/db |
||||
|
||||
networks: |
||||
default: |
||||
name: haproxy_panel_next |
||||
volumes: |
||||
mongodb_data_container: |
Loading…
Reference in new issue