- Inline tsconfig.base.json settings into backend/tsconfig.json so the Docker build (which only copies backend/) can resolve them - Replace default imports of Node built-ins (crypto, net) with named imports - Replace default bcrypt import with named imports (compare, hash) - Switch @fastify/websocket from v8 to v7 (SocketStream API) to match Fastify v4 peer dependency; update WebSocket handler signatures accordingly - Remove obsolete `version` key from docker-compose.yml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: mremotify
|
|
POSTGRES_PASSWORD: mremotify
|
|
POSTGRES_DB: mremotify
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- internal
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U mremotify']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
guacd:
|
|
image: guacamole/guacd:1.5.4
|
|
restart: unless-stopped
|
|
networks:
|
|
- internal
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/backend.Dockerfile
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
POSTGRES_URL: postgresql://mremotify:mremotify@postgres:5432/mremotify
|
|
GUACD_HOST: guacd
|
|
GUACD_PORT: '4822'
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
guacd:
|
|
condition: service_started
|
|
networks:
|
|
- internal
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/frontend.Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- '80:80'
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- internal
|
|
|
|
networks:
|
|
internal:
|
|
|
|
volumes:
|
|
postgres_data:
|