Wydzielenie bazy danych planki do osobnej sieci db_net
This commit is contained in:
@@ -12,7 +12,7 @@ services:
|
||||
# - 30230:1337
|
||||
networks:
|
||||
- central_dogma
|
||||
- default
|
||||
- db_net
|
||||
|
||||
# TO JEST KLUCZ DO ROZWIĄZANIA PROBLEMU "ENOTFOUND"
|
||||
extra_hosts:
|
||||
@@ -51,6 +51,8 @@ services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: on-failure
|
||||
networks:
|
||||
- db_net
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
@@ -82,3 +84,5 @@ volumes:
|
||||
networks:
|
||||
central_dogma:
|
||||
external: true
|
||||
db_net:
|
||||
internal: true
|
||||
|
||||
Reference in New Issue
Block a user