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