Advertisement
Guest User

Untitled

a guest
Jun 18th, 2023
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. version: "3"
  2. services:
  3.  
  4. outline:
  5. image: docker.getoutline.com/outlinewiki/outline:latest
  6. env_file: ./docker.env
  7. ports:
  8. - "3000:3000"
  9. depends_on:
  10. - postgres
  11. - redis
  12. - storage
  13.  
  14. redis:
  15. image: redis
  16. env_file: ./docker.env
  17. ports:
  18. - "6379:6379"
  19. volumes:
  20. - ./redis.conf:/redis.conf
  21. command: ["redis-server", "/redis.conf"]
  22. healthcheck:
  23. test: ["CMD", "redis-cli", "ping"]
  24. interval: 10s
  25. timeout: 30s
  26. retries: 3
  27.  
  28. postgres:
  29. image: postgres
  30. env_file: ./docker.env
  31. ports:
  32. - "5432:5432"
  33. volumes:
  34. - database-data:/var/lib/postgresql/data
  35. healthcheck:
  36. test: ["CMD", "pg_isready"]
  37. interval: 30s
  38. timeout: 20s
  39. retries: 3
  40. environment:
  41. POSTGRES_USER: 'user'
  42. POSTGRES_PASSWORD: 'pass'
  43. POSTGRES_DB: 'outline'
  44.  
  45. storage:
  46. image: minio/minio
  47. env_file: ./docker.env
  48. ports:
  49. - "9000:9000"
  50. entrypoint: sh
  51. command: -c 'minio server'
  52. deploy:
  53. restart_policy:
  54. condition: on-failure
  55. volumes:
  56. - storage-data:/data
  57. healthcheck:
  58. test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
  59. interval: 30s
  60. timeout: 20s
  61. retries: 3
  62.  
  63. https-portal:
  64. image: steveltn/https-portal
  65. env_file: ./docker.env
  66. ports:
  67. - '80:80'
  68. - '443:443'
  69. links:
  70. - outline
  71. - storage
  72. restart: always
  73. volumes:
  74. - https-portal-data:/var/lib/https-portal
  75. healthcheck:
  76. test: ["CMD", "service", "nginx", "status"]
  77. interval: 30s
  78. timeout: 20s
  79. retries: 3
  80. environment:
  81. DOMAINS: 'outline.domain1.com -> http://outline:3000'
  82. STAGE: 'production'
  83. WEBSOCKET: 'true'
  84.  
  85. volumes:
  86. https-portal-data:
  87. storage-data:
  88. database-data:
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement