diff --git a/docker-compose.yml b/docker-compose.yml index 0c6e4ea..201ec65 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,9 @@ services: ports: - "5000:8080" + networks: + - info_keeper_network + # This APP services depends upon postgres Service depends_on: [pg_database] @@ -34,6 +37,9 @@ services: # map the ports for postgres ports: - "5433:5432" + + networks: + - info_keeper_network # As data is stored on container's volume, it will be erased once we delete or remove the container. # to persist data even after the removal of the container, we need to mount volume so that the volume on /var/lib/postgresql/data # will be mapped to the given location. @@ -55,5 +61,9 @@ services: timeout: 5s retries: 5 +networks: + info_keeper_network: + driver: bridge + #volumes: # grails_web_db: