2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 18:15:40 +00:00

Expose devcontainer ports (#9757)

- Allow external connection to DB
This commit is contained in:
Oliver
2025-06-11 16:23:21 +10:00
committed by GitHub
parent 6a19088859
commit faec2e2050
2 changed files with 9 additions and 3 deletions

View File

@ -38,11 +38,17 @@
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [5173, 8000, 8080],
"forwardPorts": [5173, 5432, 6379, 8000, 8080],
"portsAttributes": {
"5173": {
"label": "Vite Server"
},
"5432": {
"label": "PostgreSQL Database"
},
"6379": {
"label": "Redis Server"
},
"8000": {
"label": "InvenTree Server"
},

View File

@ -2,7 +2,7 @@ services:
db:
image: postgres:15
restart: unless-stopped
expose:
ports:
- 5432/tcp
volumes:
- ../dev-db/:/var/lib/postgresql/data:z
@ -14,7 +14,7 @@ services:
redis:
image: redis:7.0
restart: always
expose:
ports:
- 6379
inventree: