mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-14 19:46:29 +08:00
3e88ac2f12
* split ts files * packages * nomore workspace? * blah * build, exports * declaration * blargh * turrrrbo * fix fontawesome paths * allow file in eslint, fix ts errors * optimise package, update tsconfig * fix ts * update turbo config * eslint split * fix imports * fix types * lock * add turbo task * script * test task * pretty scripts * update prettier ignore * no cache for tests * lint task * turbo * no out * depend on env * fix mono breaking things * odl * fix version dependency of mongodb-memory-server * Revert "fix version dependency of mongodb-memory-server" This reverts commit52ffac47b1
. * update vitest-mongodb * release scripts * update ci * update dev script * ignore issues around firebase config * add check ts tasks * import isaxioserror * shared types package * replace tsnodedev with tsx * fix import * shared types * module * backend imports * declaration * node version * test code * assert json * verbatim * type * lodash * ts ver * fix fix fix? * remove assert * remove module and resolution * cleanup * tsconfig * fix frontend * remove unecessary props * more unused * remove skiplib * declaration map, dev script * remove install scripts * fix regex * move shared types to package * dont include shared types * remove path * update scripts * test code * test code * fix backend types * fully fix backend * fix frontend d.ts * add .js to imports * remove module * revert add .js * update tsconfig * use bundler module resolution * almost all frontend types * mooore * date fns * fix backend docker * fix ape keys * fix type * clean rimraf type * fix shared-types in workspace * fix import resolving * fix docker builds * ignore type problems on slim-select until new version is released * turrrrbo * fix npm ci * fix lint task * expose env variables needed by frontend build * fix dependencies * package-lock * backend watch ts and lint * add fe and be build scripts to root * fix dev not building packages * shared-types missing eslint * move shared types back to dev-deps * add packages to labeler * add packages step to ci * typo * filter update * remove concurrently from root * add scripts * abbreviate * rename * yeet * fixed path * test pkg * consistent ordering * rename * Revert "backend imports" This reverts commitd715198829
. * fix missing imports, remove last .js * remove test package --------- Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
96 lines
2.7 KiB
YAML
96 lines
2.7 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
monkeytype-frontend:
|
|
container_name: monkeytype-frontend
|
|
image: monkeytype/monkeytype-frontend:latest
|
|
ports:
|
|
- "${HTTP_PORT:-8080}:80"
|
|
restart: on-failure
|
|
depends_on:
|
|
monkeytype-backend:
|
|
condition: service_healthy
|
|
env_file:
|
|
- path: ./.env
|
|
required: true
|
|
environment:
|
|
- FIREBASE_APIKEY=${FIREBASE_APIKEY:-}
|
|
- FIREBASE_AUTHDOMAIN=${FIREBASE_AUTHDOMAIN:-}
|
|
- FIREBASE_PROJECTID=${FIREBASE_PROJECTID:-}
|
|
- FIREBASE_STORAGEBUCKET=${FIREBASE_STORAGEBUCKET:-}
|
|
- FIREBASE_MESSAGINGSENDERID=${FIREBASE_MESSAGINGSENDERID:-}
|
|
- FIREBASE_APPID=${FIREBASE_APPID:-}
|
|
- MONKEYTYPE_BACKENDURL=${MONKEYTYPE_BACKENDURL}
|
|
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY:-}
|
|
|
|
monkeytype-backend:
|
|
container_name: monkeytype-backend
|
|
image: monkeytype/monkeytype-backend:latest
|
|
ports:
|
|
- "${BACKEND_PORT:-5005}:5005"
|
|
restart: on-failure
|
|
environment:
|
|
- DB_NAME=monkeytype
|
|
- DB_URI=mongodb://monkeytype-mongodb:27017
|
|
- REDIS_URI=redis://monkeytype-redis:6379
|
|
- FRONTEND_URL=${MONKEYTYPE_FRONTENDURL}
|
|
- RECAPTCHA_SECRET=${RECAPTCHA_SECRET:-}
|
|
volumes:
|
|
#uncomment to enable the account system, check the SELF_HOSTING.md file
|
|
#- type: bind
|
|
# source: ./serviceAccountKey.json
|
|
# target: /app/backend/src/credentials/serviceAccountKey.json
|
|
# read_only: true
|
|
- type: bind
|
|
source: ./backend-configuration.json
|
|
target: /app/backend/build/backend-configuration.json
|
|
read_only: true
|
|
depends_on:
|
|
monkeytype-redis:
|
|
condition: service_healthy
|
|
monkeytype-mongodb:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-z", "-v", "localhost", "5005"]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 15
|
|
start_period: 5s
|
|
|
|
monkeytype-redis:
|
|
container_name: monkeytype-redis
|
|
image: redis:6.2.6
|
|
#uncomment if you want to expose the redis server
|
|
#ports:
|
|
# - "${REDIS_PORT:-6379}:6379"
|
|
restart: on-failure
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 15
|
|
start_period: 10s
|
|
|
|
monkeytype-mongodb:
|
|
container_name: monkeytype-mongodb
|
|
image: mongo:5.0.8
|
|
restart: on-failure
|
|
volumes:
|
|
- mongo-data:/data/db
|
|
#uncomment if you want to expose the mongodb server
|
|
#ports:
|
|
# - "${MONGO_PORT:-27017}:27017"
|
|
healthcheck:
|
|
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 15
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
mongo-data:
|
|
name: monkeytype_mongo_data
|
|
redis-data:
|
|
name: monkeytype_redis_data
|