Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM mageai/mageai:latest

ARG PROJECT_NAME
ARG USER_CODE_PATH=/home/src/${PROJECT_NAME}

# Note: this overwrites the requirements.txt file in your new project on first run.
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
magic:
image: mageai/mageai:latest
Expand All @@ -8,11 +7,13 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
PROJECT_NAME: ${PROJECT_NAME}
environment:
USER_CODE_PATH: /home/src/${PROJECT_NAME}
ENV: ${ENV}
ports:
- 6789:6789
volumes:
- .:/home/src/
restart: on-failure:5
restart: unless-stopped