Move apps to different ports
This commit is contained in:
@ -24,7 +24,7 @@ services:
|
||||
networks:
|
||||
- backend-net
|
||||
environment:
|
||||
- APPPORT=3000
|
||||
- APPPORT=4000
|
||||
- DBHOST=db
|
||||
- DBPORT=5432
|
||||
- DBNAME=komponiranje
|
||||
@ -44,7 +44,7 @@ services:
|
||||
networks:
|
||||
- backend-net
|
||||
environment:
|
||||
- APPPORT=3000
|
||||
- APPPORT=4001
|
||||
- DBHOST=db
|
||||
- DBPORT=5432
|
||||
- DBNAME=komponiranje
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"short_name": "Komponiranje",
|
||||
"name": "Komponiranje frontend demo",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
|
||||
@ -26,8 +26,7 @@ docker-build: clean
|
||||
docker-run:
|
||||
@docker run \
|
||||
--name $(CONTAINER_NAME) \
|
||||
--publish 3000:3000 \
|
||||
--env CONTAINER_NAME="Awesome API server" \
|
||||
--publish 4000:4000 \
|
||||
--env DBPORT=55432 \
|
||||
--detach \
|
||||
$(IMAGE_NAME)
|
||||
|
||||
@ -6,13 +6,13 @@ import (
|
||||
|
||||
type configStruct struct {
|
||||
AppHost string `default:"0.0.0.0"`
|
||||
AppPort int `default:"3000"`
|
||||
AppPort int `default:"4000"`
|
||||
DbHost string `default:"localhost"`
|
||||
DbPort int `default:"55432"`
|
||||
DbName string `default:"komponiranje"`
|
||||
DbUser string `default:"pero"`
|
||||
DbPassword string `default:"pero.000"`
|
||||
ProductsAppUrl string `default:"http://localhost:3001"`
|
||||
ProductsAppUrl string `default:"http://localhost:4001"`
|
||||
}
|
||||
|
||||
const ENV_PREFIX = ""
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -26,8 +26,7 @@ docker-build: clean
|
||||
docker-run:
|
||||
@docker run \
|
||||
--name $(CONTAINER_NAME) \
|
||||
--publish 3000:3000 \
|
||||
--env CONTAINER_NAME="Awesome API server" \
|
||||
--publish 4001:4001 \
|
||||
--env DBPORT=55432 \
|
||||
--detach \
|
||||
$(IMAGE_NAME)
|
||||
|
||||
@ -6,7 +6,7 @@ import (
|
||||
|
||||
type configStruct struct {
|
||||
AppHost string `default:"0.0.0.0"`
|
||||
AppPort int `default:"3001"`
|
||||
AppPort int `default:"4001"`
|
||||
DbHost string `default:"localhost"`
|
||||
DbPort int `default:"55432"`
|
||||
DbName string `default:"komponiranje"`
|
||||
|
||||
@ -43,7 +43,7 @@ static_resources:
|
||||
address:
|
||||
socket_address:
|
||||
address: machines-app
|
||||
port_value: 3000
|
||||
port_value: 4000
|
||||
- name: products-app
|
||||
connect_timeout: 0.25s
|
||||
type: strict_dns
|
||||
@ -56,7 +56,7 @@ static_resources:
|
||||
address:
|
||||
socket_address:
|
||||
address: products-app
|
||||
port_value: 3000
|
||||
port_value: 4001
|
||||
admin:
|
||||
access_log_path: "/dev/null"
|
||||
address:
|
||||
|
||||
Reference in New Issue
Block a user