54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
# Requires Compose >= 2.24.4 for !override. Always use a separate project name.
|
|
name: wealthledger-dev
|
|
|
|
x-development-backend: &development-backend
|
|
image: wealthledger-backend:development
|
|
pull_policy: build
|
|
build:
|
|
context: ./backend
|
|
target: development
|
|
read_only: false
|
|
environment:
|
|
NODE_ENV: development
|
|
volumes: !override
|
|
- development-data:/data
|
|
|
|
services:
|
|
migration:
|
|
<<: *development-backend
|
|
|
|
backend:
|
|
<<: *development-backend
|
|
healthcheck:
|
|
test: [CMD, node, -e, 'fetch("http://127.0.0.1:3000/api/v1/auth/me").then(async r=>{await r.arrayBuffer();process.exit(r.status===401?0:1)}).catch(()=>process.exit(1))']
|
|
interval: 10s
|
|
timeout: 3s
|
|
start_period: 20s
|
|
retries: 6
|
|
volumes: !override
|
|
- development-data:/data
|
|
- ./backend/src:/app/src:ro
|
|
|
|
frontend:
|
|
image: wealthledger-frontend:development
|
|
pull_policy: build
|
|
build:
|
|
context: ./frontend
|
|
target: development
|
|
read_only: false
|
|
volumes:
|
|
- ./frontend/src:/app/src:ro
|
|
- ./frontend/public:/app/public:ro
|
|
environment:
|
|
VITE_API_BASE_URL: ''
|
|
API_PROXY_TARGET: http://backend:3000
|
|
healthcheck:
|
|
test: [CMD, node, -e, 'fetch("http://127.0.0.1:8080/").then(async r=>{await r.arrayBuffer();process.exit(r.ok?0:1)}).catch(()=>process.exit(1))']
|
|
interval: 10s
|
|
timeout: 3s
|
|
start_period: 10s
|
|
retries: 6
|
|
|
|
volumes:
|
|
development-data:
|