Separate backend and proxy edge networks
This commit is contained in:
@@ -9,6 +9,8 @@ It is intentionally separate from the Rocky development Compose project.
|
|||||||
- WeatherTool host binding: `127.0.0.1:8002`
|
- WeatherTool host binding: `127.0.0.1:8002`
|
||||||
- Authelia host binding: `127.0.0.1:9091`
|
- Authelia host binding: `127.0.0.1:9091`
|
||||||
- PostgreSQL: private Docker network only; no host port
|
- PostgreSQL: private Docker network only; no host port
|
||||||
|
- App-to-database traffic: internal backend network
|
||||||
|
- Nginx-to-app/auth traffic: explicit loopback ports through a separate edge network
|
||||||
- Scheduled provider jobs: disabled
|
- Scheduled provider jobs: disabled
|
||||||
- Existing VPS applications, networks, volumes, and Nginx sites: untouched
|
- Existing VPS applications, networks, volumes, and Nginx sites: untouched
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ services:
|
|||||||
- /app/data:size=256m,mode=0770,uid=100,gid=101
|
- /app/data:size=256m,mode=0770,uid=100,gid=101
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
- edge
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
|
||||||
@@ -72,7 +73,7 @@ services:
|
|||||||
- ./secrets/session_secret:/run/secrets/session_secret:ro
|
- ./secrets/session_secret:/run/secrets/session_secret:ro
|
||||||
- ./secrets/storage_encryption_key:/run/secrets/storage_encryption_key:ro
|
- ./secrets/storage_encryption_key:/run/secrets/storage_encryption_key:ro
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- edge
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
|
||||||
@@ -80,3 +81,5 @@ networks:
|
|||||||
backend:
|
backend:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
internal: true
|
internal: true
|
||||||
|
edge:
|
||||||
|
driver: bridge
|
||||||
|
|||||||
@@ -87,7 +87,8 @@ Proposed application root:
|
|||||||
WeatherTool will use:
|
WeatherTool will use:
|
||||||
|
|
||||||
- a unique Compose project name;
|
- a unique Compose project name;
|
||||||
- a private application network;
|
- an internal database backend network plus a separate proxy-facing edge
|
||||||
|
network for the two loopback-bound HTTP services;
|
||||||
- its own PostgreSQL service and persistent storage;
|
- its own PostgreSQL service and persistent storage;
|
||||||
- its own Authelia configuration and storage;
|
- its own Authelia configuration and storage;
|
||||||
- an ephemeral writable application scratch filesystem while the remaining
|
- an ephemeral writable application scratch filesystem while the remaining
|
||||||
|
|||||||
Reference in New Issue
Block a user