76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:13
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
ports:
|
|
- "${DB_PORT:-5432}:${DB_PORT:-5432}"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
minio:
|
|
image: minio/minio
|
|
restart: unless-stopped
|
|
environment:
|
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
|
command: server /data --console-address :${MINIO_CONSOLE_PORT:-9001}
|
|
ports:
|
|
- "${MINIO_PORT:-9000}:${MINIO_PORT:-9000}" # API port
|
|
- "${MINIO_CONSOLE_PORT:-9001}:${MINIO_CONSOLE_PORT:-9001}" # WebUI port
|
|
volumes:
|
|
- minio_data:/data
|
|
|
|
backend:
|
|
#build:
|
|
#context: .
|
|
#dockerfile: server/Dockerfile
|
|
image: getmaxun/maxun-backend:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}"
|
|
env_file: .env
|
|
environment:
|
|
BACKEND_URL: ${BACKEND_URL}
|
|
# to ensure Playwright works in Docker
|
|
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
|
|
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
|
|
shm_size: '2gb' # Increase shared memory size for Chromium
|
|
mem_limit: 2g # Set a 2GB memory limit
|
|
depends_on:
|
|
- postgres
|
|
- minio
|
|
volumes:
|
|
- /var/run/dbus:/var/run/dbus
|
|
|
|
frontend:
|
|
#build:
|
|
#context: .
|
|
#dockerfile: Dockerfile
|
|
image: getmaxun/maxun-frontend:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${FRONTEND_PORT:-5173}:${FRONTEND_PORT:-5173}"
|
|
env_file: .env
|
|
environment:
|
|
PUBLIC_URL: ${PUBLIC_URL}
|
|
BACKEND_URL: ${BACKEND_URL}
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
postgres_data:
|
|
minio_data: |