i think this will work...
This commit is contained in:
parent
2d1fad4560
commit
71d161f3fb
@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
# Database (Postgres)
|
# Database (Postgres)
|
||||||
offstage-reactiveresume-postgres:
|
reactiveresume-postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: offstage-reactiveresume-postgres
|
container_name: reactiveresume-postgres
|
||||||
volumes:
|
volumes:
|
||||||
- offstage-reactiveresume-postgres_data:/var/lib/postgresql/data
|
- reactiveresume-postgres_data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: postgres
|
POSTGRES_DB: postgres
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
@ -21,24 +21,24 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
# Storage (for image uploads)
|
# Storage (for image uploads)
|
||||||
offstage-reactiveresume-minio:
|
reactiveresume-minio:
|
||||||
image: minio/minio
|
image: minio/minio
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: offstage-reactiveresume-minio
|
container_name: reactiveresume-minio
|
||||||
command: server /data
|
command: server /data
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "1000:9000"
|
||||||
volumes:
|
volumes:
|
||||||
- offstage-reactiveresume-minio_data:/data
|
- reactiveresume-minio_data:/data
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: minioadmin
|
MINIO_ROOT_USER: minioadmin
|
||||||
MINIO_ROOT_PASSWORD: minioadmin
|
MINIO_ROOT_PASSWORD: minioadmin
|
||||||
|
|
||||||
# Chrome Browser (for printing and previews)
|
# Chrome Browser (for printing and previews)
|
||||||
offstage-reactiveresume-chrome:
|
reactiveresume-chrome:
|
||||||
image: ghcr.io/browserless/chromium:latest
|
image: ghcr.io/browserless/chromium:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: offstage-reactiveresume-chrome
|
container_name: reactiveresume-chrome
|
||||||
environment:
|
environment:
|
||||||
TIMEOUT: 10000
|
TIMEOUT: 10000
|
||||||
CONCURRENT: 10
|
CONCURRENT: 10
|
||||||
@ -46,31 +46,31 @@ services:
|
|||||||
EXIT_ON_HEALTH_FAILURE: true
|
EXIT_ON_HEALTH_FAILURE: true
|
||||||
PRE_REQUEST_HEALTH_CHECK: true
|
PRE_REQUEST_HEALTH_CHECK: true
|
||||||
|
|
||||||
offstage-reactiveresume-app:
|
reactiveresume-app:
|
||||||
image: amruthpillai/reactive-resume:latest
|
image: amruthpillai/reactive-resume:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: offstage-reactiveresume-app
|
container_name: reactiveresume-app
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "1001:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- offstage-reactiveresume-postgres
|
- reactiveresume-postgres
|
||||||
- offstage-reactiveresume-minio
|
- reactiveresume-minio
|
||||||
- offstage-reactiveresume-chrome
|
- reactiveresume-chrome
|
||||||
environment:
|
environment:
|
||||||
# -- Environment Variables --
|
# -- Environment Variables --
|
||||||
PORT: 3000
|
PORT: 1001
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
|
||||||
# -- URLs --
|
# -- URLs --
|
||||||
PUBLIC_URL: http://localhost:3000
|
PUBLIC_URL: http://localhost:1001
|
||||||
STORAGE_URL: http://localhost:9000/default
|
STORAGE_URL: http://localhost:1000/default
|
||||||
|
|
||||||
# -- Printer (Chrome) --
|
# -- Printer (Chrome) --
|
||||||
CHROME_TOKEN: chrome_token
|
CHROME_TOKEN: chrome_token
|
||||||
CHROME_URL: ws://offstage-reactiveresume-chrome:3000
|
CHROME_URL: ws://reactiveresume-chrome:1001
|
||||||
|
|
||||||
# -- Database (Postgres) --
|
# -- Database (Postgres) --
|
||||||
DATABASE_URL: postgresql://postgres:postgres@offstage-reactiveresume-postgres:5432/postgres
|
DATABASE_URL: postgresql://postgres:postgres@reactiveresume-postgres:5432/postgres
|
||||||
|
|
||||||
# -- Auth --
|
# -- Auth --
|
||||||
ACCESS_TOKEN_SECRET: access_token_secret
|
ACCESS_TOKEN_SECRET: access_token_secret
|
||||||
@ -81,8 +81,8 @@ services:
|
|||||||
# SMTP_URL: smtp://user:pass@smtp:587 # Optional
|
# SMTP_URL: smtp://user:pass@smtp:587 # Optional
|
||||||
|
|
||||||
# -- Storage (Minio) --
|
# -- Storage (Minio) --
|
||||||
STORAGE_ENDPOINT: offstage-reactiveresume-minio
|
STORAGE_ENDPOINT: reactiveresume-minio
|
||||||
STORAGE_PORT: 9000
|
STORAGE_PORT: 1000
|
||||||
STORAGE_REGION: us-east-1 # Optional
|
STORAGE_REGION: us-east-1 # Optional
|
||||||
STORAGE_BUCKET: default
|
STORAGE_BUCKET: default
|
||||||
STORAGE_ACCESS_KEY: minioadmin
|
STORAGE_ACCESS_KEY: minioadmin
|
||||||
@ -109,5 +109,5 @@ services:
|
|||||||
# GOOGLE_CALLBACK_URL: http://localhost:3000/api/auth/google/callback
|
# GOOGLE_CALLBACK_URL: http://localhost:3000/api/auth/google/callback
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
offstage-reactiveresume-minio_data:
|
reactiveresume-minio_data:
|
||||||
offstage-reactiveresume-postgres_data:
|
reactiveresume-postgres_data:
|
Loading…
Reference in New Issue
Block a user