forked from mirrors/misskey
* enhance(backend): pugをやめ、JSXベースのテンプレートに変更 (to misskey-dev dev branch) (#16889) * wip * wip * wip * wip * fix lint * attempt to fix test * fix * fix * fix: oauthページの描画がおかしい問題を修正 * typo [ci skip] * fix * fix * fix * fix * fix * refactor * fix * fix * fix broken lockfile * fix: expose supported languages as global variable * remove i18n package from root as it is no longer required [ci skip] * fix * fix: add i18n package.json to Docker target-builder stage for federation tests (#16909) * Initial plan * fix: add i18n package.json to Docker target-builder stage for federation tests Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> * fix: followup-test-federation for enh-remove-pug (#16910) * fix: followup-test-federation for enh-remove-pug * Revert "fix: add i18n package.json to Docker target-builder stage for federation tests (#16909)" This reverts commit 14313468d34f49c363eef4d0a932e9fc0d9a37fb. * fix: CSSが読み込まれない場合がある問題を修正 * fix [ci skip] * fix: propsのデフォルト値をnull合体演算子から論理和演算子に変更(空文字に対処するため) * remove @types/pug * enhance: bootloaderを埋め込むように * fix possible race condition * remove esbuild --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
114 lines
3.1 KiB
YAML
114 lines
3.1 KiB
YAML
services:
|
|
nginx:
|
|
image: nginx:1.27
|
|
volumes:
|
|
- type: bind
|
|
source: ./certificates/rootCA.crt
|
|
target: /etc/nginx/certificates/rootCA.crt
|
|
read_only: true
|
|
healthcheck:
|
|
test: service nginx status
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
misskey:
|
|
image: node:${NODE_VERSION}
|
|
env_file:
|
|
- ./.config/docker.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- type: bind
|
|
source: ../../../built
|
|
target: /misskey/built
|
|
read_only: true
|
|
- type: bind
|
|
source: ../assets
|
|
target: /misskey/packages/backend/assets
|
|
read_only: true
|
|
- type: bind
|
|
source: ../built
|
|
target: /misskey/packages/backend/built
|
|
read_only: true
|
|
- type: bind
|
|
source: ../migration
|
|
target: /misskey/packages/backend/migration
|
|
read_only: true
|
|
- type: bind
|
|
source: ../ormconfig.js
|
|
target: /misskey/packages/backend/ormconfig.js
|
|
read_only: true
|
|
- type: bind
|
|
source: ../package.json
|
|
target: /misskey/packages/backend/package.json
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../misskey-js/built
|
|
target: /misskey/packages/misskey-js/built
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../misskey-js/package.json
|
|
target: /misskey/packages/misskey-js/package.json
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../i18n/built
|
|
target: /misskey/packages/i18n/built
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../i18n/package.json
|
|
target: /misskey/packages/i18n/package.json
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../misskey-reversi/built
|
|
target: /misskey/packages/misskey-reversi/built
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../misskey-reversi/package.json
|
|
target: /misskey/packages/misskey-reversi/package.json
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../../healthcheck.sh
|
|
target: /misskey/healthcheck.sh
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../../package.json
|
|
target: /misskey/package.json
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../../pnpm-lock.yaml
|
|
target: /misskey/pnpm-lock.yaml
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../../pnpm-workspace.yaml
|
|
target: /misskey/pnpm-workspace.yaml
|
|
read_only: true
|
|
- type: bind
|
|
source: ../../../patches
|
|
target: /misskey/patches
|
|
read_only: true
|
|
- type: bind
|
|
source: ./certificates/rootCA.crt
|
|
target: /usr/local/share/ca-certificates/rootCA.crt
|
|
read_only: true
|
|
working_dir: /misskey
|
|
command: >
|
|
bash -c "
|
|
npm install -g pnpm
|
|
pnpm -F backend migrate
|
|
pnpm -F backend start
|
|
"
|
|
healthcheck:
|
|
test: bash /misskey/healthcheck.sh
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
db:
|
|
image: postgres:18-alpine
|
|
env_file:
|
|
- ./.config/docker.env
|
|
volumes:
|
|
healthcheck:
|
|
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
|
interval: 5s
|
|
retries: 20
|