Advertisement
Guest User

Untitled

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