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:
container_name: hello_world_cl_prod
build:
context: .
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- 8877:80
- 3000:80

View file

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

View file

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

View file

@ -37,5 +37,5 @@
"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 up