diff --git a/postgresql.yaml b/postgresql.yaml index 6064cad..bb78ade 100644 --- a/postgresql.yaml +++ b/postgresql.yaml @@ -10,6 +10,9 @@ services: POSTGRES_DB: volumes: - /postgresql/data:/var/lib/postgresql/data + networks: + postgresql: + ipv4_address: ports: - "5432:5432" pgadmin: @@ -21,5 +24,14 @@ services: PGADMIN_DEFAULT_PASSWORD: volumes: - /pgadmin:/var/lib/pgadmin + networks: + postgresql: + ipv4_address: ports: - - "5050:80" \ No newline at end of file + - "5050:80" +networks: + postgresql: + name: postgresql + ipam: + config: + - subnet: \ No newline at end of file