mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update web_dev and web_tests containers for e2e testings
This commit is contained in:
@@ -90,6 +90,7 @@ services:
|
|||||||
context: https://github.com/xbgmsharp/vuestic-postgsail.git#live
|
context: https://github.com/xbgmsharp/vuestic-postgsail.git#live
|
||||||
dockerfile: Dockerfile_dev
|
dockerfile: Dockerfile_dev
|
||||||
container_name: web_dev
|
container_name: web_dev
|
||||||
|
hostname: web_dev
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
@@ -97,8 +98,9 @@ services:
|
|||||||
- "api:postgrest"
|
- "api:postgrest"
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- VITE_PGSAIL_URL=${PGSAIL_API_URL}
|
- VITE_PGSAIL_URL=http://api:3000
|
||||||
- VITE_APP_INCLUDE_DEMOS=false
|
- VITE_APP_INCLUDE_DEMOS=false
|
||||||
- VITE_APP_BUILD_VERSION=true
|
- VITE_APP_BUILD_VERSION=true
|
||||||
- VITE_APP_TITLE=${VITE_APP_TITLE}
|
- VITE_APP_TITLE=${VITE_APP_TITLE}
|
||||||
@@ -109,5 +111,25 @@ services:
|
|||||||
options:
|
options:
|
||||||
max-size: 10m
|
max-size: 10m
|
||||||
|
|
||||||
|
web_tests:
|
||||||
|
image: cypress/included
|
||||||
|
container_name: web_tests
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./frontend/e2e:/e2e
|
||||||
|
links:
|
||||||
|
- "api:postgrest"
|
||||||
|
- "web_dev:frontend"
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- CYPRESS_BASE_URL=http://web_dev:8080
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- api
|
||||||
|
- web_dev
|
||||||
|
logging:
|
||||||
|
options:
|
||||||
|
max-size: 10m
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data: {}
|
data: {}
|
||||||
|
Reference in New Issue
Block a user