Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'master' of
https://gitbox.apache.org/repos/asf/juneau-petstore.git Conflicts: Dockerfile
- Loading branch information
Showing
24 changed files
with
332 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,54 @@ | ||
version: '2' | ||
|
||
# Define services | ||
services: | ||
# backend service | ||
app-server: | ||
image: petstore | ||
# Configuration for building the docker image for the backend service | ||
build: | ||
context: ./ # Use an image built from the specified dockerfile. | ||
dockerfile: Dockerfile | ||
ports: | ||
- "5000:5000" # Forward the exposed port 5000 on the container to port 5000 on the host machine | ||
restart: always | ||
depends_on: | ||
- db | ||
|
||
networks: # Networks to join | ||
- backend | ||
- frontend | ||
|
||
# frontend service | ||
app-client: | ||
build: | ||
context: pets # Use an image built from the specified dockerfile. | ||
dockerfile: Dockerfile | ||
args: | ||
REACT_APP_API_BASE_URL: localhost:3000 | ||
ports: | ||
- "3000:3000" # Map the exposed port 3000 on the container to port 3000 on the host machine | ||
restart: always | ||
depends_on: | ||
- app-server | ||
networks: | ||
- frontend | ||
|
||
# Database Service (Apache Derby) | ||
db: | ||
image: az82/docker-derby | ||
ports: | ||
- "1527:1527" | ||
restart: always | ||
|
||
networks: | ||
- backend | ||
|
||
# Volumes | ||
volumes: | ||
db-data: | ||
|
||
# Networks to be created to facilitate communication between containers | ||
networks: | ||
backend: | ||
frontend: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.