-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move e2e compose file and added the job to the workflow
- Loading branch information
1 parent
60aa1ef
commit 73f0613
Showing
7 changed files
with
84 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This reproduces the production behavior of the application | ||
NODE_ENV=production | ||
|
||
JWT_SECRET_KEY=defaultvalue | ||
# The service name in docker-compose | ||
DATABASE_HOST_PROD=db | ||
DATABASE_PORT=5432 | ||
DATABASE_USERNAME=postgres | ||
DATABASE_PASSWORD=password | ||
DATABASE_NAME=postgres | ||
|
||
STRIPE_SECRET_KEY=sk_test_123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
backend: | ||
build: ../backend | ||
env_file: | ||
- .env.e2e | ||
depends_on: | ||
- db | ||
frontend: | ||
build: ../frontend | ||
depends_on: | ||
- backend | ||
db: | ||
image: postgres | ||
environment: | ||
POSTGRES_PASSWORD: password | ||
apigateway: | ||
image: nginx | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
depends_on: | ||
- backend | ||
- frontend | ||
ports: | ||
- 7001:80 | ||
playwright: | ||
build: . | ||
volumes: | ||
- ./playwright-report:/app/playwright-report | ||
- ./test-results:/app/test-results | ||
depends_on: | ||
- apigateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
events {} | ||
|
||
http { | ||
|
||
server { | ||
listen 80; | ||
|
||
location /api { | ||
proxy_pass http://backend:4000/; | ||
} | ||
|
||
location /hmr { | ||
proxy_pass http://frontend:7001/; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
||
location / { | ||
proxy_pass http://frontend:5173/; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"scripts": { | ||
"start": "docker compose up --build", | ||
"e2e": "docker compose -f docker-compose.e2e.yml up --build --exit-code-from e2e", | ||
"build_prod_and_start": "docker compose -f docker-compose.build.prod.yml up --build" | ||
} | ||
} |