mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
* style: deactivate PLC0415 only on part that it's ok + re-run pre-commit run --all * ci: add pre-commit hook * build: move from yarn to pnpm * build: move from yarn to pnpm * build: fix node-version * ci: install pnpm prior node (?) * build: update deps and pnpm trying to fix vercel build * feat: docker www corepack * style: pre-commit --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
65 lines
1.1 KiB
YAML
65 lines
1.1 KiB
YAML
services:
|
|
server:
|
|
build:
|
|
context: server
|
|
ports:
|
|
- 1250:1250
|
|
volumes:
|
|
- ./server/:/app/
|
|
env_file:
|
|
- ./server/.env
|
|
environment:
|
|
ENTRYPOINT: server
|
|
|
|
worker:
|
|
build:
|
|
context: server
|
|
volumes:
|
|
- ./server/:/app/
|
|
env_file:
|
|
- ./server/.env
|
|
environment:
|
|
ENTRYPOINT: worker
|
|
|
|
beat:
|
|
build:
|
|
context: server
|
|
volumes:
|
|
- ./server/:/app/
|
|
env_file:
|
|
- ./server/.env
|
|
environment:
|
|
ENTRYPOINT: beat
|
|
|
|
redis:
|
|
image: redis:7.2
|
|
ports:
|
|
- 6379:6379
|
|
web:
|
|
image: node:18
|
|
ports:
|
|
- "3000:3000"
|
|
command: sh -c "corepack enable && pnpm install && pnpm dev"
|
|
restart: unless-stopped
|
|
working_dir: /app
|
|
volumes:
|
|
- ./www:/app/
|
|
- /app/node_modules
|
|
env_file:
|
|
- ./www/.env.local
|
|
|
|
postgres:
|
|
image: postgres:17
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_USER: reflector
|
|
POSTGRES_PASSWORD: reflector
|
|
POSTGRES_DB: reflector
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
default:
|
|
attachable: true
|