Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. version: '3'
  2. networks:
  3. osago:
  4. driver: bridge
  5. services:
  6. nginx:
  7. image: nginx
  8. volumes:
  9. - ./web/api.conf:/etc/nginx/conf.d/default.conf
  10. ports:
  11. - "8080:80"
  12. networks:
  13. - osago
  14. depends_on:
  15. - api
  16.  
  17. api:
  18. build:
  19. context: ./api
  20. user: "${PUID}:${PGID}"
  21. environment:
  22. - DB_DATABASE=${DB_NAME}
  23. - DB_PASSWORD=${DB_PASSWORD}
  24. volumes:
  25. - ./api:/var/www
  26. networks:
  27. - osago
  28. depends_on:
  29. - workspace
  30.  
  31. worker:
  32. build:
  33. context: ./worker
  34. user: "${PUID}:${PGID}"
  35. restart: always
  36. command: php /var/www/artisan osago:worker
  37. environment:
  38. - DB_DATABASE=${DB_NAME}
  39. - DB_PASSWORD=${DB_PASSWORD}
  40. volumes:
  41. - ./api:/var/www
  42. networks:
  43. - osago
  44. depends_on:
  45. - workspace
  46.  
  47. db:
  48. image: mysql:5.7
  49. user: "${PUID}:${PGID}"
  50. ports:
  51. - 3306:3306
  52. volumes:
  53. - "./db/:/var/lib/mysql"
  54. environment:
  55. MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
  56. MYSQL_DATABASE: ${DB_NAME}
  57. networks:
  58. - osago
  59.  
  60. redis:
  61. image: redis
  62. ports:
  63. - 6379:6379
  64. networks:
  65. - osago
  66.  
  67. workspace:
  68. build:
  69. context: ./workspace
  70. args:
  71. - PUID=${PUID}
  72. - PGID=${PGID}
  73. tty: true
  74. command: osagoUpdater
  75. environment:
  76. - DB_DATABASE=${DB_NAME}
  77. - DB_PASSWORD=${DB_PASSWORD}
  78. volumes:
  79. - ./api:/var/www
  80. - ./workspace/update.sh:/usr/local/bin/osagoUpdater
  81. networks:
  82. - osago
  83. depends_on:
  84. - db
  85. - redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement