fix(docker): changed compose example to include external ip stuff to reach devices

This commit is contained in:
2025-09-02 17:55:17 -05:00
parent 083f38a079
commit 8fe1bcaef5
3 changed files with 36 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ services:
- "${VITE_PORT:-4200}:4200"
environment:
- NODE_ENV=devolpment
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_HOST=host.docker.internal
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
@@ -18,3 +18,29 @@ services:
- PROD_USER=${PROD_USER}
- PROD_PASSWORD=${PROD_PASSWORD}
restart: unless-stopped
# for all host including prod servers, plc's, printers, or other de
extra_hosts:
- "${PROD_SERVER}:${PROD_IP}"
networks:
- default
- logisticsNetwork
- mlan1
networks:
logisticsNetwork:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: ${LOGISTICS_NETWORK}
gateway: ${LOGISTICS_GATEWAY}
mlan1:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: ${MLAN1_NETWORK}
gateway: ${MLAN1_GATEWAY}