added specific subnets and ips
This commit is contained in:
@@ -14,8 +14,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9000:8080
|
- 9000:8080
|
||||||
networks:
|
networks:
|
||||||
- swa-keycloak
|
swa-keycloak:
|
||||||
- swa-keycloak-db
|
ipv4_address: 10.42.1.3
|
||||||
|
swa-keycloak-db:
|
||||||
|
ipv4_address: 10.42.2.3
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo ""
|
test: echo ""
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -35,7 +37,8 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
networks:
|
networks:
|
||||||
- swa-keycloak-db
|
swa-keycloak-db:
|
||||||
|
ipv4_address: 10.42.2.2
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
@@ -49,7 +52,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
networks:
|
networks:
|
||||||
- swa-public
|
swa-public:
|
||||||
|
ipv4_address: 10.42.0.3
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "service", "nginx", "status"]
|
test: ["CMD", "service", "nginx", "status"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -67,9 +71,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 3000:8080
|
- 3000:8080
|
||||||
networks:
|
networks:
|
||||||
- swa-public
|
swa-public:
|
||||||
- swa-keycloak
|
ipv4_address: 10.42.0.3
|
||||||
- swa-database
|
swa-keycloak:
|
||||||
|
ipv4_address: 10.42.1.4
|
||||||
|
swa-database:
|
||||||
|
ipv4_address: 10.42.3.3
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo ""
|
test: echo ""
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -91,7 +98,8 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
networks:
|
networks:
|
||||||
- swa-database
|
swa-database:
|
||||||
|
ipv4_address: 10.42.2.2
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
@@ -103,14 +111,26 @@ networks:
|
|||||||
default:
|
default:
|
||||||
external: false
|
external: false
|
||||||
|
|
||||||
|
swa-public:
|
||||||
|
name: swa-public
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 10.42.0.0/24
|
||||||
|
|
||||||
swa-keycloak:
|
swa-keycloak:
|
||||||
name: swa-keycloak
|
name: swa-keycloak
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 10.42.1.0/24
|
||||||
|
|
||||||
swa-keycloak-db:
|
swa-keycloak-db:
|
||||||
name: swa-keycloak-db
|
name: swa-keycloak-db
|
||||||
|
ipam:
|
||||||
swa-public:
|
config:
|
||||||
name: swa-public
|
- subnet: 10.42.2.0/24
|
||||||
|
|
||||||
swa-database:
|
swa-database:
|
||||||
name: swa-database
|
name: swa-database
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 10.42.3.0/24
|
||||||
|
|||||||
Reference in New Issue
Block a user