diff --git a/compose.dev.yml b/compose.dev.yml index 3a473848a..c99b3900e 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -77,7 +77,7 @@ services: timeout: 10s retries: 3 - seaweedfs-create-bucket: + seaweedfs_create_bucket: image: quay.io/minio/mc:latest restart: on-failure entrypoint: > diff --git a/compose.yml b/compose.yml index 0e39782a3..4595b74a1 100644 --- a/compose.yml +++ b/compose.yml @@ -56,7 +56,7 @@ services: timeout: 10s retries: 3 - seaweedfs-create-bucket: + seaweedfs_create_bucket: image: quay.io/minio/mc:latest restart: on-failure entrypoint: > @@ -70,7 +70,7 @@ services: seaweedfs: condition: service_healthy - app: + reactive_resume: image: amruthpillai/reactive-resume:latest # image: ghcr.io/amruthpillai/reactive-resume:latest environment: @@ -78,7 +78,7 @@ services: - TZ=Etc/UTC - NODE_ENV=production - APP_URL=http://localhost:3000 - - PRINTER_APP_URL=http://app:3000 + - PRINTER_APP_URL=http://reactive_resume:3000 # Printer - PRINTER_ENDPOINT=ws://browserless:3000?token=1234567890 # - PRINTER_ENDPOINT=http://chrome:9222 # Or, if you're using chromedp/headless-shell @@ -101,7 +101,7 @@ services: condition: service_healthy browserless: condition: service_healthy - seaweedfs-create-bucket: + seaweedfs_create_bucket: condition: service_completed_successfully healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] diff --git a/docs/contributing/development.mdx b/docs/contributing/development.mdx index b6b1b617b..63723d67e 100644 --- a/docs/contributing/development.mdx +++ b/docs/contributing/development.mdx @@ -299,13 +299,13 @@ pnpm run typecheck ```bash docker compose -f compose.dev.yml logs seaweedfs - docker compose -f compose.dev.yml logs seaweedfs-create-bucket + docker compose -f compose.dev.yml logs seaweedfs_create_bucket ``` If the bucket wasn't created, restart the bucket creation service: ```bash - docker compose -f compose.dev.yml restart seaweedfs-create-bucket + docker compose -f compose.dev.yml restart seaweedfs_create_bucket ``` diff --git a/docs/self-hosting/docker.mdx b/docs/self-hosting/docker.mdx index 043e398a7..effa858ea 100644 --- a/docs/self-hosting/docker.mdx +++ b/docs/self-hosting/docker.mdx @@ -184,7 +184,7 @@ services: timeout: 5s retries: 10 - app: + reactive-resume: image: amruthpillai/reactive-resume:latest # image: ghcr.io/amruthpillai/reactive-resume:latest restart: unless-stopped diff --git a/docs/self-hosting/examples.mdx b/docs/self-hosting/examples.mdx index c96c79db7..bb67ba2c2 100644 --- a/docs/self-hosting/examples.mdx +++ b/docs/self-hosting/examples.mdx @@ -92,18 +92,18 @@ services: timeout: 10s retries: 3 - app: + reactive_resume: image: amruthpillai/reactive-resume:latest restart: unless-stopped environment: - APP_URL=https://resume.${DOMAIN} - - PRINTER_APP_URL=http://app:3000 + - PRINTER_APP_URL=http://reactive_resume:3000 - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - PRINTER_ENDPOINT=http://printer:3000 - AUTH_SECRET=${AUTH_SECRET} # Add other optional env vars as needed (SMTP, S3, OAuth, etc.) volumes: - - app_data:/app/data + - reactive_resume_data:/app/data networks: - reactive_resume_network depends_on: @@ -130,7 +130,7 @@ networks: volumes: traefik_letsencrypt: postgres_data: - app_data: + reactive_resume_data: ``` **Environment variables (`.env`):** @@ -163,8 +163,6 @@ services: - ./certs:/etc/nginx/certs:ro networks: - reactive_resume_network - depends_on: - - app postgres: image: postgres:latest @@ -195,18 +193,18 @@ services: networks: - reactive_resume_network - app: + reactive_resume: image: amruthpillai/reactive-resume:latest restart: unless-stopped environment: - APP_URL=https://resume.${DOMAIN} - - PRINTER_APP_URL=http://app:3000 + - PRINTER_APP_URL=http://reactive_resume:3000 - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres - PRINTER_ENDPOINT=http://printer:3000 - AUTH_SECRET=${AUTH_SECRET} # Add other optional env vars as needed (SMTP, S3, OAuth, etc.) volumes: - - app_data:/app/data + - reactive_resume_data:/app/data networks: - reactive_resume_network depends_on: @@ -226,7 +224,7 @@ networks: volumes: postgres_data: - app_data: + reactive_resume_data: ``` **nginx configuration (`nginx.conf`):** @@ -238,7 +236,7 @@ events { http { upstream reactive_resume { - server app:3000; + server reactive_resume:3000; } # Redirect HTTP to HTTPS @@ -384,13 +382,13 @@ services: mode: replicated replicas: 1 - app: + reactive_resume: image: ghcr.io/amruthpillai/reactive-resume:latest networks: - traefik_network - reactive_resume_network volumes: - - reactive_resume_app_data:/app/data + - reactive_resume_data:/app/data environment: - APP_URL=$APP_URL # If using browserless with token auth, include the token in the URL: @@ -447,8 +445,8 @@ volumes: name: reactive_resume_postgres_data reactive_resume_seaweedfs_data: name: reactive_resume_seaweedfs_data - reactive_resume_app_data: - name: reactive_resume_app_data + reactive_resume_data: + name: reactive_resume_data ``` **Deploy the stack:**