Add network configuration for microservices in Docker Compose

This commit is contained in:
Alexa
2026-06-15 22:17:14 +03:00
parent 78ff4481db
commit babfd2833f
2 changed files with 27 additions and 0 deletions
+8
View File
@@ -180,6 +180,14 @@ bundled `postgres` hostname:
DORKNET_POSTGRES_CONNECTION_STRING=Host=<postgres-host>;Port=5432;Database=dorknet;Username=<user>;Password=<password>
```
`docker-compose.microservices.dokploy.yml` attaches every backend
service that opens database connections to both the stack's default
network and Dokploy's external `dokploy-network`. Use the managed
Postgres service's real internal Docker/Dokploy hostname in
`DORKNET_POSTGRES_CONNECTION_STRING`; inside a DorkNet service container,
`getent hosts <postgres-host>` should return a Docker IP, not
`127.0.0.1`.
For hosted Postgres that requires TLS, include the Npgsql SSL options:
```env