Advertisement
Guest User

DockerResume

a guest
Jan 29th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. # In this Docker Compose example, it assumes that you maintain a reverse proxy externally (or chose not to).
  2. # The only two exposed ports here are from minio (:9000) and the app itself (:3000).
  3. # If these ports are changed, ensure that the env vars passed to the app are also changed accordingly.
  4.  
  5. services:
  6. # Database (Postgres)
  7. postgres:
  8. image: postgres:16-alpine
  9. restart: unless-stopped
  10. volumes:
  11. - postgres_data:/var/lib/postgresql/data
  12. environment:
  13. POSTGRES_DB: postgres
  14. POSTGRES_USER: postgres
  15. POSTGRES_PASSWORD: postgres
  16. healthcheck:
  17. test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
  18. interval: 10s
  19. timeout: 5s
  20. retries: 5
  21.  
  22. # Storage (for image uploads)
  23. minio:
  24. image: minio/minio:latest
  25. restart: unless-stopped
  26. command: server /data
  27. ports:
  28. - "9000:9000"
  29. volumes:
  30. - minio_data:/data
  31. environment:
  32. MINIO_ROOT_USER: minioadmin
  33. MINIO_ROOT_PASSWORD: minioadmin
  34.  
  35. # Chrome Browser (for printing and previews)
  36. chrome:
  37. image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
  38. restart: unless-stopped
  39. extra_hosts:
  40. - "host.docker.internal:host-gateway"
  41. environment:
  42. TIMEOUT: 100000
  43. CONCURRENT: 10
  44. TOKEN: chrome_token
  45. EXIT_ON_HEALTH_FAILURE: "true"
  46. PRE_REQUEST_HEALTH_CHECK: "true"
  47.  
  48. app:
  49. image: amruthpillai/reactive-resume:latest
  50. restart: unless-stopped
  51. ports:
  52. - "3002:3002"
  53. depends_on:
  54. - postgres
  55. - minio
  56. - chrome
  57. environment:
  58. # -- Environment Variables --
  59. PORT: 3002
  60. NODE_ENV: production
  61.  
  62. # -- URLs --
  63. PUBLIC_URL: http://192.168.1.144:3002
  64. STORAGE_URL: http://192.168.1.144:9000/default
  65.  
  66. # -- Printer (Chrome) --
  67. CHROME_TOKEN: chrome_token
  68. CHROME_URL: ws://localhost:3002
  69.  
  70. # -- Database (Postgres) --
  71. DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
  72.  
  73. # -- Auth --
  74. ACCESS_TOKEN_SECRET: access_token_secret
  75. REFRESH_TOKEN_SECRET: refresh_token_secret
  76.  
  77. # -- Emails --
  78. MAIL_FROM: noreply@localhost
  79. # SMTP_URL: smtp://user:pass@smtp:587 # Optional
  80.  
  81. # -- Storage (Minio) --
  82. STORAGE_ENDPOINT: minio
  83. STORAGE_PORT: 9000
  84. STORAGE_REGION: us-east-1 # Optional
  85. STORAGE_BUCKET: default
  86. STORAGE_ACCESS_KEY: minioadmin
  87. STORAGE_SECRET_KEY: minioadmin
  88. STORAGE_USE_SSL: "false"
  89. STORAGE_SKIP_BUCKET_CHECK: "false"
  90.  
  91. # -- Crowdin (Optional) --
  92. # CROWDIN_PROJECT_ID:
  93. # CROWDIN_PERSONAL_TOKEN:
  94.  
  95. # -- Email (Optional) --
  96. # DISABLE_SIGNUPS: "false"
  97. # DISABLE_EMAIL_AUTH: "false"
  98.  
  99. # -- GitHub (Optional) --
  100. # GITHUB_CLIENT_ID: github_client_id
  101. # GITHUB_CLIENT_SECRET: github_client_secret
  102. # GITHUB_CALLBACK_URL: http://localhost:3000/api/auth/github/callback
  103.  
  104. # -- Google (Optional) --
  105. # GOOGLE_CLIENT_ID: google_client_id
  106. # GOOGLE_CLIENT_SECRET: google_client_secret
  107. # GOOGLE_CALLBACK_URL: http://localhost:3000/api/auth/google/callback
  108.  
  109. # -- OpenID (Optional) --
  110. # VITE_OPENID_NAME: OpenID
  111. # OPENID_AUTHORIZATION_URL:
  112. # OPENID_CALLBACK_URL: http://localhost:3000/api/auth/openid/callback
  113. # OPENID_CLIENT_ID:
  114. # OPENID_CLIENT_SECRET:
  115. # OPENID_ISSUER:
  116. # OPENID_SCOPE: openid profile email
  117. # OPENID_TOKEN_URL:
  118. # OPENID_USER_INFO_URL:
  119.  
  120. volumes:
  121. minio_data:
  122. postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement