This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker-compose to launch mdot and rest at once
- Loading branch information
1 parent
d51f550
commit 0e0c327
Showing
2 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# use docker-compose -f docker-compose-with-rest.yml up --build for this file | ||
|
||
version: '3.7' | ||
|
||
services: | ||
mdot-rest: | ||
restart: always | ||
container_name: mdot-rest-co-op | ||
build: | ||
context: ../mdot-rest | ||
dockerfile: Dockerfile | ||
target: app-container | ||
# map the local (host) directories to their container counterparts | ||
# to support live-syncing | ||
volumes: | ||
- ./mdot_rest:/app/mdot-rest | ||
ports: | ||
- "${REST_PORT:-8000}:8000" | ||
networks: | ||
mdot-net: | ||
ipv4_address: 10.5.0.5 | ||
environment: | ||
ENV: localdev | ||
AUTH: ${AUTH:-SAML_MOCK} | ||
|
||
mdot: | ||
restart: always | ||
container_name: mdot-co-op | ||
build: | ||
context: . | ||
dockerfile: ${DOCKERFILE:-Dockerfile} | ||
target: app-container | ||
# map the local (host) directories to their container counterparts | ||
# to support live-syncing | ||
volumes: | ||
- ./mdot:/app/mdot | ||
ports: | ||
- "${PORT:-8001}:8000" | ||
networks: | ||
mdot-net: | ||
ipv4_address: 10.5.0.6 | ||
environment: | ||
ENV: localdev | ||
AUTH: ${AUTH:-SAML_MOCK} | ||
RESTCLIENTS_MDOT_DAO_CLASS: Live | ||
RESTCLIENTS_MDOT_HOST: 10.5.0.5:8000 | ||
|
||
networks: | ||
mdot-net: | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: 10.5.0.0/16 |
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