docker-compose/frontend #6

Merged
cami merged 4 commits from docker-compose/frontend into main 2021-05-25 23:24:49 +00:00
5 changed files with 17 additions and 22 deletions

View file

@ -4,7 +4,7 @@ services:
hello-world-prod: hello-world-prod:
container_name: hello_world_cl_prod container_name: hello_world_cl_prod
build: build:
context: . context: ./frontend
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
ports: ports:
- 8877:80 - 3000:80

View file

@ -7,24 +7,20 @@ services:
context: ./frontend context: ./frontend
dockerfile: Dockerfile dockerfile: Dockerfile
tty: true tty: true
volumes:
- './frontend/.:/app:z'
- '/app/node_modules'
ports: ports:
- 3000:3000 - 3000:3000
environment: environment:
- CHOKIDAR_USEPOLLING=true - CHOKIDAR_USEPOLLING=true
backend-dev: # backend-dev:
container_name: backend_bt # container_name: backend_bt
build: # build:
context: ./backend # context: ./backend
dockerfile: Dockerfile # dockerfile: Dockerfile
tty: true # tty: true
volumes: # volumes:
- ./backend:/usr/src/app/ # - ./backend:/usr/src/app/
ports: # ports:
- 5000:5000 # - 5000:5000
environment: # environment:
PORT: 5000 # PORT: 5000
FLASK_DEBUG: 1 # FLASK_DEBUG: 1

View file

@ -10,7 +10,7 @@ ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
RUN npm install --silent RUN npm install
# add app # add app
COPY . ./ COPY . ./

View file

@ -37,5 +37,5 @@
"last 1 safari version" "last 1 safari version"
] ]
}, },
"proxy": "http://127.0.0.1:3000" "proxy": "http://127.0.0.1:5000"
} }

View file

@ -1,3 +1,2 @@
cd frontend
podman-compose down podman-compose down
podman-compose up podman-compose up