fix:fix some connect bug
This commit is contained in:
@@ -4,7 +4,7 @@ Test Environment Deployment Goals:
|
|||||||
1. Complete local development ->
|
1. Complete local development ->
|
||||||
1. Push to the repository ->
|
1. Push to the repository ->
|
||||||
1. Pull code for testing ->
|
1. Pull code for testing ->
|
||||||
1. Start the container using `docker compose -f <filename> up `
|
1. Start the container using `docker compose watch `
|
||||||
|
|
||||||
### according above flow, we can achieve : g
|
### according above flow, we can achieve : g
|
||||||
connect to the existing traefik-public network
|
connect to the existing traefik-public network
|
||||||
|
|||||||
@@ -99,35 +99,39 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
args:
|
args:
|
||||||
- VITE_API_URL=http://localhost:8000
|
- VITE_API_URL=http://120.76.41.122:8000
|
||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
|
develop:
|
||||||
|
watch:
|
||||||
|
- path: ./frontend
|
||||||
|
action: rebuild
|
||||||
|
|
||||||
playwright:
|
# playwright:
|
||||||
build:
|
# build:
|
||||||
context: ./frontend
|
# context: ./frontend
|
||||||
dockerfile: Dockerfile.playwright
|
# dockerfile: Dockerfile.playwright
|
||||||
args:
|
# args:
|
||||||
- VITE_API_URL=http://backend:8000
|
# - VITE_API_URL=http://backend:8000
|
||||||
- NODE_ENV=production
|
# - NODE_ENV=production
|
||||||
ipc: host
|
# ipc: host
|
||||||
depends_on:
|
# depends_on:
|
||||||
- backend
|
# - backend
|
||||||
- mailcatcher
|
# - mailcatcher
|
||||||
env_file:
|
# env_file:
|
||||||
- .env
|
# - .env
|
||||||
environment:
|
# environment:
|
||||||
- VITE_API_URL=http://backend:8000
|
# - VITE_API_URL=http://backend:8000
|
||||||
- MAILCATCHER_HOST=http://mailcatcher:1080
|
# - MAILCATCHER_HOST=http://mailcatcher:1080
|
||||||
# For the reports when run locally
|
# # For the reports when run locally
|
||||||
- PLAYWRIGHT_HTML_HOST=0.0.0.0
|
# - PLAYWRIGHT_HTML_HOST=0.0.0.0
|
||||||
- CI=${CI}
|
# - CI=${CI}
|
||||||
volumes:
|
# volumes:
|
||||||
- ./frontend/blob-report:/app/blob-report
|
# - ./frontend/blob-report:/app/blob-report
|
||||||
- ./frontend/test-results:/app/test-results
|
# - ./frontend/test-results:/app/test-results
|
||||||
ports:
|
# ports:
|
||||||
- 9323:9323
|
# - 9323:9323
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik-public:
|
traefik-public:
|
||||||
# For local dev, don't expect an external Traefik network
|
# For local dev, don't expect an external Traefik network
|
||||||
external: true
|
external: false
|
||||||
|
|||||||
@@ -140,11 +140,12 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
- default
|
- default
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
args:
|
args:
|
||||||
- VITE_API_URL=http://api.${DOMAIN?Variable not set}
|
- VITE_API_URL=https://api.${DOMAIN?Variable not set}
|
||||||
# - VITE_API_URL=https://api.${DOMAIN?Variable not set}
|
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
@@ -163,6 +164,9 @@ services:
|
|||||||
|
|
||||||
# Enable redirection for HTTP and HTTPS
|
# Enable redirection for HTTP and HTTPS
|
||||||
- traefik.http.routers.${STACK_NAME?Variable not set}-frontend-http.middlewares=https-redirect
|
- traefik.http.routers.${STACK_NAME?Variable not set}-frontend-http.middlewares=https-redirect
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app-db-data:
|
app-db-data:
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
VITE_API_URL=http://backend:8000
|
VITE_API_URL=http://120.76.41.122:8000
|
||||||
MAILCATCHER_HOST=http://localhost:1080
|
MAILCATCHER_HOST=http://120.76.41.122:1080
|
||||||
Reference in New Issue
Block a user