2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35: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. // Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [5173, 8000, 8080], "forwardPorts": [5173, 5432, 6379, 8000, 8080],
"portsAttributes": { "portsAttributes": {
"5173": { "5173": {
"label": "Vite Server" "label": "Vite Server"
}, },
"5432": {
"label": "PostgreSQL Database"
},
"6379": {
"label": "Redis Server"
},
"8000": { "8000": {
"label": "InvenTree Server" "label": "InvenTree Server"
}, },

View File

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