Skip to content

Commit

Permalink
Moved the docker_compose volume into the production version. If in de…
Browse files Browse the repository at this point in the history
…velop version, then the app volume will be added as well
  • Loading branch information
tg2414 committed Nov 9, 2023
1 parent dfc24ba commit a36772b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ def generate_docker_compose(template_file: str, ip: str, develop: bool = False)
},
"depends_on": ["nginx"],
}
docker_compose["services"]["dash"]["volumes"] = ["./logs:/logs"]

if develop:
docker_compose["services"]["dash"]["build"] = "."
docker_compose["services"]["dash"]["volumes"] = ["./app:/app", "./logs:/logs"]
docker_compose["services"]["dash"]["volumes"] += ["./app:/app"]
docker_compose["services"]["dash"]["environment"]["DH_URL"] = "http://127.0.0.1"
else:
docker_compose["services"]["dash"][
Expand Down

0 comments on commit a36772b

Please sign in to comment.