Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
add docker-compose to launch mdot and rest at once
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Strupinski authored and abztrakt committed Dec 3, 2022
1 parent d51f550 commit 0e0c327
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
53 changes: 53 additions & 0 deletions docker-compose-with-rest.yml
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
1 change: 1 addition & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# PORT=8001
AUTH=SAML_MOCK
# MDOT RestClient
# REST_PORT=8000
# RESTCLIENTS_MDOT_DAO_CLASS=Live
# RESTCLIENTS_MDOT_HOST=http://localhost:8000/

Expand Down

0 comments on commit 0e0c327

Please sign in to comment.