chore: add docker files for local development for backend and frontend
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
30dca813b6
commit
c55d4b93ee
|
@ -1,2 +1,5 @@
|
|||
debian
|
||||
node_modules
|
||||
node_modules
|
||||
.quasar
|
||||
build
|
||||
.vscode
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
FROM node:20-bookworm
|
||||
|
||||
RUN npm install -g pnpm@8
|
||||
|
||||
WORKDIR /hedera
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD [ "npm", "run", "front" ]
|
|
@ -0,0 +1,15 @@
|
|||
FROM php:8.2-cli
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends git
|
||||
|
||||
WORKDIR /usr/src
|
||||
RUN git clone https://gitea.verdnatura.es/verdnatura/php-vn-lib.git
|
||||
|
||||
RUN docker-php-ext-install mysqli
|
||||
|
||||
WORKDIR /usr/src/hedera-web
|
||||
COPY . .
|
||||
|
||||
WORKDIR /usr/src/hedera-web/back
|
||||
|
||||
CMD [ "php", "-S", "0.0.0.0:3002", "-t", ".", "index.php" ]
|
|
@ -101,9 +101,9 @@ module.exports = configure(function (ctx) {
|
|||
headers: { 'Access-Control-Allow-Origin': '*' },
|
||||
// stats: { chunks: false },
|
||||
proxy: {
|
||||
'/api': 'http://localhost:3000',
|
||||
'/api': 'http://salix-back:3000',
|
||||
'/': {
|
||||
target: 'http://localhost:3002',
|
||||
target: 'http://hedera-back:3002',
|
||||
bypass: req => (req.path !== '/' ? req.path : null)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue