mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
* chore: start application in dev mode using docker (@fehmer) * expose port env variable * regen lock * regen lock --------- Co-authored-by: Miodec <jack@monkeytype.com>
21 lines
605 B
YAML
21 lines
605 B
YAML
name: monkeytype
|
|
services:
|
|
frontend:
|
|
container_name: monkeytype-frontend
|
|
image: node:18.20.4
|
|
user: "node" ##this works as long as your local user has uid=1000
|
|
# restart: on-failure
|
|
environment:
|
|
- SERVER_OPEN=false
|
|
- BACKEND_URL=http://localhost:${DOCKER_SERVER_PORT:-5005}
|
|
ports:
|
|
- "${DOCKER_HTTP_PORT:-3000}:3000"
|
|
volumes:
|
|
- ../../:/monkeytype
|
|
entrypoint: 'bash -c "echo starting, this may take a while... \
|
|
&& cd /monkeytype \
|
|
&& npm i --prefer-offline --no-audit \
|
|
&& export SERVER_OPEN=false \
|
|
&& npm run dev-fe"'
|
|
|
|
|