Merge pull request 'docker-compose/frontend' (#6) from docker-compose/frontend into main
Reviewed-on: #6
This commit is contained in:
commit
e5d95083f6
5 changed files with 17 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 . ./
|
||||
|
|
|
@ -37,5 +37,5 @@
|
|||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"proxy": "http://127.0.0.1:3000"
|
||||
"proxy": "http://127.0.0.1:5000"
|
||||
}
|
||||
|
|
1
start.sh
1
start.sh
|
@ -1,3 +1,2 @@
|
|||
cd frontend
|
||||
podman-compose down
|
||||
podman-compose up
|
||||
|
|
Loading…
Reference in a new issue