Skip to content

Commit

Permalink
Developing the front using a Docker backend
Browse files Browse the repository at this point in the history
  • Loading branch information
luontola committed Aug 13, 2018
1 parent f8aa452 commit c931111
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -80,7 +80,7 @@ Start the database

docker-compose up -d db

Start the API backend (without an IDE)
Start the API backend (if not using an IDE)

mvn spring-boot:run

Expand All @@ -91,6 +91,11 @@ Start the web frontend (with live reloading)

The application will run at http://localhost:8080/

You may also start just the frontend or backend using Docker if you're developing only one layer of the application.

docker-compose up -d api
docker-compose up -d web


## More Resources

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Expand Up @@ -18,6 +18,8 @@ services:
DB_USERNAME: cqrshotel
DB_PASSWORD: cqrshotel
DB_URL: jdbc:postgresql://db:5432/cqrshotel
ports:
- "8081:8080"

db:
image: postgres:9.6.1
Expand Down

0 comments on commit c931111

Please sign in to comment.