mirror of
				https://github.com/monkeytypegame/monkeytype.git
				synced 2025-10-29 02:07:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			759 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			759 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: monkeytype
 | |
| services:
 | |
|   frontend:
 | |
|     container_name: monkeytype-frontend
 | |
|     build:
 | |
|       dockerfile_inline: |
 | |
|         FROM node:20.19.4
 | |
|         RUN npm i -g pnpm@9.6.0
 | |
|         RUN mkdir /pnpm-store && chown -R 1000:1000 /pnpm-store
 | |
|     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 \
 | |
|       && pnpm config set store-dir /pnpm-store
 | |
|       && pnpm i \
 | |
|       && export SERVER_OPEN=false \
 | |
|       && npm run dev-fe"'
 |