Skip to content

Commit

Permalink
Only use docker volume in develop mode. Fix Image URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDAlessandro committed Oct 19, 2023
1 parent 86360a3 commit d1b8d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def generate_docker_compose(
logging.info("Adding dash app to docker-compose.yml...")
docker_compose["services"]["dash"] = {
"ports": ["8050:8050"],
"volumes": ["./app:/app"],
"environment": {
"API_URL": f"http://{lines_to_replace['OVE_HOST']}",
"PLOT_URL": f"http://{lines_to_replace['PLOT_URL']}",
Expand All @@ -80,10 +79,11 @@ def generate_docker_compose(
}
if develop:
docker_compose["services"]["dash"]["build"] = "."
docker_compose["services"]["dash"]["volumes"] = ["./app:/app"]
else:
docker_compose["services"]["dash"][
"image"
] = "ghcr.io/imperialcollegelondon/gridlington-vis:main"
] = "ghcr.io/imperialcollegelondon/gridlington-vis:latest"
if local:
docker_compose["services"]["ovehub-ove-apps"]["image"] = "ove-apps:9.9.9"
docker_compose["services"]["ovehub-ove-ove"]["image"] = "ove-ove:9.9.9"
Expand Down

0 comments on commit d1b8d67

Please sign in to comment.