@@ -79,41 +79,61 @@ services:
7979 - 5432:5432
8080
8181 backend :
82- container_name : ui-backend
82+ container_name : hamilton- ui-backend
8383 image : dagworks/ui-backend:latest
84+ # build:
85+ # context: backend
86+ # dockerfile: Dockerfile.backend
87+ entrypoint : [ "/bin/bash", "-c", "cd /code/server && ls && ./entrypoint.sh" ]
88+ volumes :
89+ # - ./backend:/code
90+ - /data/hamilton_ui:/data/
8491 ports :
85- - " 8241:8241"
92+ - 8241:8241
93+ # env_file: .env
8694 environment :
87- - DB_HOST=db
95+ - DB_HOST=postgres
8896 - DB_PORT=5432
89- - DB_NAME=postgres
90- - DB_USER=user
91- - DB_PASSWORD=password # TODO: Change this to a secret
97+ - DB_NAME=flowerpower
98+ - DB_USER=postgres
99+ - DB_PASSWORD=password # Purely for local! Do not deploy to production!
92100 - HAMILTON_BLOB_STORE=local
93101 - HAMILTON_ENV=local # local env
94102 - HAMILTON_LOCAL_BLOB_DIR=/data/blobs # TODO -- set this up to be a better one
95103 - DJANGO_SECRET_KEY=do_not_use_in_production
96- - HAMILTON_TELEMETRY_ENABLED=${HAMILTON_TELEMETRY_ENABLED-true }
104+ - HAMILTON_TELEMETRY_ENABLED=false # ${HAMILTON_TELEMETRY_ENABLED}
97105 - HAMILTON_AUTH_MODE=permissive
98- depends_on :
99- - postgres
100- volumes :
101- - backend_data:/data/
106+ - HAMILTON_ALLOWED_HOSTS=*
107+ - HAMILTON_CAPTURE_DATA_STATISTICS=false
108+ - HAMILTON_MAX_LIST_LENGTH_CAPTURE
109+ - HAMILTON_MAX_DICT_LENGTH_CAPTURE
110+
111+ restart : unless-stopped
102112
103113 frontend :
104- container_name : ui-frontend
114+ container_name : hamilton- ui-frontend
105115 image : dagworks/ui-frontend:latest
116+ # build:
117+ # context: frontend
118+ # dockerfile: Dockerfile.frontend
119+ # args:
120+ # - REACT_APP_AUTH_MODE=local
121+ # - REACT_APP_USE_POSTHOG=false
122+ # volumes:
123+ # - ./frontend:/usr/src/app
124+ # - /usr/src/app/node_modules
106125 ports :
107- - " 8242:8242"
126+ - 8242:8242
108127 environment :
109- - NGINX_PORT=8242 # NB Custom port won't be visible in console & will mean the backend's shortcut will fail
128+ - NGINX_PORT=8242
110129 - NODE_ENV=development
111130 - REACT_APP_AUTH_MODE=local
112131 - REACT_APP_USE_POSTHOG=false
113132 - REACT_APP_API_URL=http://backend:8241
114133 depends_on :
115134 - backend
116135
136+ restart : unless-stopped
117137
118138volumes :
119139 jupytercode :
0 commit comments