Skip to content

Commit

Permalink
docker-compose.yml updated with network added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Badri Paudel committed Mar 2, 2024
1 parent 49869a3 commit 0f4c2eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ services:
ports:
- "5000:8080"

networks:
- info_keeper_network

# This APP services depends upon postgres Service
depends_on:
[pg_database]
Expand All @@ -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.
Expand All @@ -55,5 +61,9 @@ services:
timeout: 5s
retries: 5

networks:
info_keeper_network:
driver: bridge

#volumes:
# grails_web_db:

0 comments on commit 0f4c2eb

Please sign in to comment.