2024-10-24 18:57:07 +05:30
|
|
|
version: '3.8'
|
2024-10-29 23:42:58 +05:30
|
|
|
|
2024-10-24 18:57:07 +05:30
|
|
|
services:
|
2024-11-01 16:03:48 +05:30
|
|
|
postgres:
|
2024-10-30 12:04:38 +05:30
|
|
|
image: postgres:13
|
2024-10-24 18:57:07 +05:30
|
|
|
environment:
|
2024-10-29 23:42:58 +05:30
|
|
|
POSTGRES_USER: ${DB_USER}
|
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
2024-11-01 16:03:48 +05:30
|
|
|
POSTGRES_DB: ${DB_NAME}
|
2024-10-29 23:42:58 +05:30
|
|
|
ports:
|
2024-12-04 18:08:18 +05:30
|
|
|
- "${DB_PORT}:${DB_PORT}"
|
2024-10-24 18:57:07 +05:30
|
|
|
volumes:
|
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2024-10-30 21:38:00 +05:30
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
2024-10-24 18:57:07 +05:30
|
|
|
|
2024-11-01 16:03:48 +05:30
|
|
|
redis:
|
|
|
|
|
image: redis:6
|
|
|
|
|
environment:
|
|
|
|
|
REDIS_HOST: ${REDIS_HOST}
|
|
|
|
|
REDIS_PORT: ${REDIS_PORT}
|
|
|
|
|
ports:
|
|
|
|
|
- "6379:6379"
|
|
|
|
|
volumes:
|
|
|
|
|
- redis_data:/data
|
|
|
|
|
|
2024-10-24 18:57:07 +05:30
|
|
|
minio:
|
|
|
|
|
image: minio/minio
|
2024-10-29 23:42:58 +05:30
|
|
|
environment:
|
|
|
|
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
|
|
|
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
2024-11-04 21:59:05 +05:30
|
|
|
command: server /data --console-address :9001
|
2024-10-24 18:57:07 +05:30
|
|
|
ports:
|
2024-11-04 21:59:05 +05:30
|
|
|
- "9000:9000" # API port
|
|
|
|
|
- "9001:9001" # WebUI port
|
2024-10-24 18:57:07 +05:30
|
|
|
volumes:
|
|
|
|
|
- minio_data:/data
|
|
|
|
|
|
2024-11-01 16:03:48 +05:30
|
|
|
backend:
|
2024-11-23 01:47:05 +05:30
|
|
|
#build:
|
2024-11-22 23:52:05 +05:30
|
|
|
#context: .
|
|
|
|
|
#dockerfile: server/Dockerfile
|
2024-11-23 08:38:55 +05:30
|
|
|
image: getmaxun/maxun-backend:v0.0.2
|
2024-10-30 05:47:58 +05:30
|
|
|
ports:
|
2024-11-01 16:03:48 +05:30
|
|
|
- "8080:8080"
|
|
|
|
|
env_file: .env
|
2024-11-01 16:28:17 +05:30
|
|
|
environment:
|
|
|
|
|
# to ensure Playwright works in Docker
|
|
|
|
|
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
|
2024-11-03 01:08:29 +05:30
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0
|
|
|
|
|
# DEBUG: pw:api
|
|
|
|
|
# PWDEBUG: 1 # Enables debugging
|
|
|
|
|
CHROMIUM_FLAGS: '--disable-gpu --no-sandbox --headless=new'
|
|
|
|
|
security_opt:
|
|
|
|
|
- seccomp=unconfined # This might help with browser sandbox issues
|
2024-11-02 00:23:58 +05:30
|
|
|
# Increase shared memory size for Chromium
|
|
|
|
|
shm_size: '2gb'
|
2024-11-23 01:47:05 +05:30
|
|
|
mem_limit: 2g # Set a 2GB memory limit
|
2024-11-01 16:03:48 +05:30
|
|
|
depends_on:
|
|
|
|
|
- postgres
|
|
|
|
|
- redis
|
|
|
|
|
- minio
|
2024-11-04 19:56:35 +05:30
|
|
|
volumes:
|
|
|
|
|
- ./server:/app/server # Mount server source code for hot reloading
|
|
|
|
|
- ./maxun-core:/app/maxun-core # Mount maxun-core for any shared code updates
|
|
|
|
|
- /var/run/dbus:/var/run/dbus
|
2024-10-30 05:47:58 +05:30
|
|
|
|
2024-11-01 16:03:48 +05:30
|
|
|
frontend:
|
2024-11-23 01:47:05 +05:30
|
|
|
#build:
|
2024-11-22 23:52:05 +05:30
|
|
|
#context: .
|
|
|
|
|
#dockerfile: Dockerfile
|
2024-11-23 01:47:05 +05:30
|
|
|
image: getmaxun/maxun-frontend:v0.0.1
|
2024-11-01 07:41:38 +05:30
|
|
|
ports:
|
2024-11-01 16:03:48 +05:30
|
|
|
- "5173:5173"
|
|
|
|
|
env_file: .env
|
2024-11-04 19:56:35 +05:30
|
|
|
volumes:
|
|
|
|
|
- ./:/app # Mount entire frontend app directory for hot reloading
|
|
|
|
|
- /app/node_modules # Anonymous volume to prevent overwriting node_modules
|
2024-11-01 07:41:38 +05:30
|
|
|
depends_on:
|
2024-11-01 16:03:48 +05:30
|
|
|
- backend
|
2024-11-01 07:41:38 +05:30
|
|
|
|
2024-10-24 18:57:07 +05:30
|
|
|
volumes:
|
|
|
|
|
postgres_data:
|
2024-10-30 05:47:58 +05:30
|
|
|
minio_data:
|
|
|
|
|
redis_data:
|