improve handling of several environments

This commit is contained in:
ІО-23 Шмуляр Олег 2025-05-28 20:16:12 +03:00
parent 0374b173c8
commit 03f0b75d63
5 changed files with 8 additions and 5 deletions

View File

@ -31,7 +31,7 @@ services:
image: 10.5.1.10:5000/dev/map image: 10.5.1.10:5000/dev/map
restart: always restart: always
volumes: volumes:
- ./map/config.json:/usr/share/nginx/html/config.json:ro - ./map/config-dev.json:/usr/share/nginx/html/config.json:ro
ports: ports:
- 80:80 - 80:80

View File

@ -31,7 +31,7 @@ services:
image: 10.5.1.10:5000/prod/map image: 10.5.1.10:5000/prod/map
restart: always restart: always
volumes: volumes:
- ./map/config.json:/usr/share/nginx/html/config.json:ro - ./map/config-prod.json:/usr/share/nginx/html/config.json:ro
ports: ports:
- 80:80 - 80:80

3
map/config-dev.json Normal file
View File

@ -0,0 +1,3 @@
{
"API": "http://10.5.1.12:8080/api/v1/client"
}

3
map/config-prod.json Normal file
View File

@ -0,0 +1,3 @@
{
"API": "http://10.5.1.11:8080/api/v1/client"
}

View File

@ -1,3 +0,0 @@
{
"API": "http://10.1.1.2:8080/api/v1/client"
}