2024-02-28 21:17:09 +08:00
|
|
|
name: monkeytype
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
container_name: monkeytype-frontend
|
2024-07-31 00:44:35 +08:00
|
|
|
image: node:20.16.0
|
2024-07-25 01:48:01 +08:00
|
|
|
user: "node" ##this works as long as your local user has uid=1000
|
2024-02-28 21:17:09 +08:00
|
|
|
# restart: on-failure
|
|
|
|
environment:
|
|
|
|
- SERVER_OPEN=false
|
2024-03-04 23:10:22 +08:00
|
|
|
- BACKEND_URL=http://localhost:${DOCKER_SERVER_PORT:-5005}
|
2024-02-28 21:17:09 +08:00
|
|
|
ports:
|
2024-03-04 23:10:22 +08:00
|
|
|
- "${DOCKER_HTTP_PORT:-3000}:3000"
|
2024-02-28 21:17:09 +08:00
|
|
|
volumes:
|
|
|
|
- ../../:/monkeytype
|
2024-07-25 01:48:01 +08:00
|
|
|
entrypoint: 'bash -c "echo starting, this may take a while... \
|
|
|
|
&& cd /monkeytype \
|
2024-07-31 04:36:19 +08:00
|
|
|
&& npm i -g pnpm \
|
|
|
|
&& pnpm i \
|
2024-07-25 01:48:01 +08:00
|
|
|
&& export SERVER_OPEN=false \
|
|
|
|
&& npm run dev-fe"'
|
2024-03-04 23:10:22 +08:00
|
|
|
|
|
|
|
|