feat: add separate browser service
This commit is contained in:
@@ -74,6 +74,42 @@ services:
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
browser:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: browser/Dockerfile
|
||||
args:
|
||||
BROWSER_WS_PORT: ${BROWSER_WS_PORT:-3001}
|
||||
BROWSER_HEALTH_PORT: ${BROWSER_HEALTH_PORT:-3002}
|
||||
ports:
|
||||
- "${BROWSER_WS_PORT:-3001}:${BROWSER_WS_PORT:-3001}"
|
||||
- "${BROWSER_HEALTH_PORT:-3002}:${BROWSER_HEALTH_PORT:-3002}"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DEBUG=pw:browser*
|
||||
- BROWSER_WS_PORT=${BROWSER_WS_PORT:-3001}
|
||||
- BROWSER_HEALTH_PORT=${BROWSER_HEALTH_PORT:-3002}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:${BROWSER_HEALTH_PORT:-3002}/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
cpus: '1.5'
|
||||
reservations:
|
||||
memory: 1G
|
||||
cpus: '1.0'
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
shm_size: 2gb
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
minio_data:
|
||||
Reference in New Issue
Block a user