2024-02-28 21:17:09 +08:00
|
|
|
name: monkeytype
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
container_name: monkeytype-frontend
|
|
|
|
image: node:18.19.1
|
|
|
|
# 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:
|
2024-03-04 23:10:22 +08:00
|
|
|
- root-modules:/monkeytype/node_modules
|
|
|
|
- fe-modules:/monkeytype/frontend/node_modules
|
2024-02-28 21:17:09 +08:00
|
|
|
- ../../:/monkeytype
|
2024-03-04 23:10:22 +08:00
|
|
|
entrypoint: 'bash -c "cd /monkeytype && npm install && cd /monkeytype/frontend && npm install && npm run dev"'
|
2024-02-28 21:17:09 +08:00
|
|
|
# entrypoint: "tail -f /dev/null"
|
2024-03-04 23:10:22 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
root-modules:
|
|
|
|
fe-modules:
|
|
|
|
|