Skip to content

Commit

Permalink
Fixed proxy settings for e2e stack. Removed nginx proxy in favor of v…
Browse files Browse the repository at this point in the history
…ue dev proxy.
  • Loading branch information
james-perretta committed Oct 16, 2024
1 parent efb319b commit 65876a4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 193 deletions.
149 changes: 0 additions & 149 deletions docker-compose.yml

This file was deleted.

17 changes: 5 additions & 12 deletions e2e_test_stack/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
version: "3"

services:
nginx:
image: nginx:latest
restart: no
container_name: ag-vue-e2e-nginx
ports:
- "8080:80"
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d

website:
restart: no
build:
context: ../
dockerfile: Dockerfile-website-dev
container_name: ag-vue-e2e-website
expose:
- "8080"
ports:
- 8080:8080
# expose:
# - "8080"
volumes:
- ../src:/usr/src/app/src
- ../tests:/usr/src/app/tests
- ../public:/usr/src/app/public
command: npm run serve -- --host website
command: npm run serve

django:
restart: no
Expand Down
14 changes: 0 additions & 14 deletions nginx/conf.d/default.conf

This file was deleted.

15 changes: 0 additions & 15 deletions vue.config.e2e.js

This file was deleted.

6 changes: 3 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module.exports = {
devServer: {
proxy: {
"/api": {
target: "http://django:8001",
target: "http://django:8000",
},
"/static": {
target: "http://django:8001",
target: "http://django:8000",
},
"/__debug__/": {
target: "http://django:8001",
target: "http://django:8000",
},
},
},
Expand Down

0 comments on commit 65876a4

Please sign in to comment.