Skip to content
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ RUN python RedDB/db.py
ENTRYPOINT [ "python" ]

# Run redeye
CMD ["redeye.py", "--safe", "--port", "8443"]
CMD ["redeye.py", "--safe", "--port", "8443", "--docker"]
15 changes: 14 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ version: "3.3"
services:
redeye:
container_name: "Redeye"
image: "redeyeframework/redeye:stable"
image: "ghcr.io/redeye-framework/redeye:latest"
ports:
- "8443:8443"
volumes:
- Files:/redeye/files
- DB:/redeye/RedDB
neo4j:
image: "neo4j:4.4.9"
ports:
- "0.0.0.0:7474:7474"
- "0.0.0.0:7687:7687"
volumes:
- NeoData:/data
- NeoLogs:/logs
- NeoImport:/var/lib/neo4j/import
- NeoPlugins:/plugins

env_file:
- graph.env

volumes:
Files:
Expand Down
13 changes: 7 additions & 6 deletions redeye.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,6 +1911,12 @@ def startRedeye(reset=False, debug=False, port=5000, safe=False, docker=False, d
showHelpMenu()
sys.exit(0)

global IS_ENV_SAFE
IS_ENV_SAFE = safe

global USE_NEO4J
USE_NEO4J = docker

if reset:
projectsFiles = glob("RedDB/Projects/*")
allFiles = glob("files/**", recursive=True)
Expand Down Expand Up @@ -1953,13 +1959,8 @@ def startRedeye(reset=False, debug=False, port=5000, safe=False, docker=False, d
db.init()

init(app)

global IS_ENV_SAFE
IS_ENV_SAFE = safe

global USE_NEO4J
USE_NEO4J = docker


if demo:
#init exampleDB.
# Load default json file.
Expand Down