auto-fix linting

This commit is contained in:
BlackSigkill 2026-02-06 21:53:17 +01:00
parent ccb1a17f44
commit 408e8a019b
3 changed files with 106 additions and 105 deletions

View file

@ -40,7 +40,7 @@ Visit `http://localhost:5173` (hot-reload enabled)
Docker Compose [profiles](https://docs.docker.com/compose/how-tos/profiles/) control which services start. A service with no profile always runs. A service with a profile only runs when that profile is activated. Docker Compose [profiles](https://docs.docker.com/compose/how-tos/profiles/) control which services start. A service with no profile always runs. A service with a profile only runs when that profile is activated.
| Command | What starts | | Command | What starts |
|---------|-------------| | --------------------------------------------------------- | ------------------------------------ |
| `docker compose up -d` | Monochrome | | `docker compose up -d` | Monochrome |
| `docker compose --profile pocketbase up -d` | Monochrome + PocketBase | | `docker compose --profile pocketbase up -d` | Monochrome + PocketBase |
| `docker compose --profile dev up -d` | Monochrome + Dev server | | `docker compose --profile dev up -d` | Monochrome + Dev server |
@ -53,10 +53,10 @@ services:
monochrome: # no profile -- always starts monochrome: # no profile -- always starts
pocketbase: pocketbase:
profiles: ["pocketbase"] # opt-in profiles: ['pocketbase'] # opt-in
monochrome-dev: monochrome-dev:
profiles: ["dev"] # opt-in profiles: ['dev'] # opt-in
``` ```
### Override File ### Override File
@ -96,7 +96,7 @@ services:
image: my-api:latest image: my-api:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- "4000:4000" - '4000:4000'
networks: networks:
- monochrome-network - monochrome-network
``` ```
@ -177,7 +177,7 @@ Node.js Alpine image with source code mounted as a volume for hot-reload.
### Files ### Files
| File | Purpose | In upstream repo | | File | Purpose | In upstream repo |
|------|---------|:---:| | ----------------------------- | ----------------------------- | :--------------: |
| `docker-compose.yml` | All services with profiles | Yes | | `docker-compose.yml` | All services with profiles | Yes |
| `docker-compose.override.yml` | Fork-specific customizations | No | | `docker-compose.override.yml` | Fork-specific customizations | No |
| `.env.example` | Environment variable template | Yes | | `.env.example` | Environment variable template | Yes |

View file

@ -120,6 +120,7 @@ Visit `http://localhost:3000`
For PocketBase, development mode, and advanced setups, see [DOCKER.md](DOCKER.md). For PocketBase, development mode, and advanced setups, see [DOCKER.md](DOCKER.md).
### Option 2: Manual Installation ### Option 2: Manual Installation
#### Prerequisites #### Prerequisites
- [Node.js](https://nodejs.org/) (Version 20+ or 22+ recommended) - [Node.js](https://nodejs.org/) (Version 20+ or 22+ recommended)

View file

@ -6,12 +6,12 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: monochrome container_name: monochrome
ports: ports:
- "${MONOCHROME_PORT:-3000}:4173" - '${MONOCHROME_PORT:-3000}:4173'
restart: unless-stopped restart: unless-stopped
networks: networks:
- monochrome-network - monochrome-network
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4173/"] test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4173/']
interval: 30s interval: 30s
timeout: 3s timeout: 3s
retries: 3 retries: 3
@ -29,14 +29,14 @@ services:
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD:-changeme} PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD:-changeme}
TZ: ${TZ:-UTC} TZ: ${TZ:-UTC}
ports: ports:
- "${POCKETBASE_PORT:-8090}:8090" - '${POCKETBASE_PORT:-8090}:8090'
volumes: volumes:
- pb_data:/pb_data - pb_data:/pb_data
- pb_public:/pb_public - pb_public:/pb_public
- pb_hooks:/pb_hooks - pb_hooks:/pb_hooks
command: serve --http=0.0.0.0:8090 command: serve --http=0.0.0.0:8090
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"] test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:8090/api/health']
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
@ -53,7 +53,7 @@ services:
profiles: profiles:
- dev - dev
ports: ports:
- "${MONOCHROME_DEV_PORT:-5173}:5173" - '${MONOCHROME_DEV_PORT:-5173}:5173'
volumes: volumes:
- .:/app - .:/app
- /app/node_modules - /app/node_modules