Guest User

Untitled

a guest
Feb 17th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. ace-web:
  5. build:
  6. context: ./ace-frontend
  7. image: node:10.14.1
  8. ports:
  9. - 8081:8080
  10. command: bash -c "npm install && npm run serve"
  11. working_dir: /src
  12. volumes:
  13. - "./ace-frontend:/src"
  14. environment:
  15. HOST: 0.0.0.0
  16. db:
  17. build:
  18. context: ./ace-api
  19. image: mysql:5.6
  20. volumes:
  21. - api-mysql:/var/lib/mysql
  22. restart: always
  23. environment:
  24. MYSQL_ROOT_PASSWORD: ace
  25. MYSQL_DATABASE: ace
  26. MYSQL_USER: ace
  27. MYSQL_PASSWORD: ace
  28. web:
  29. build:
  30. context: ./ace-api
  31. image: python:3.7
  32. ports:
  33. - 8082:8000
  34. command: bash -c "pip install -r requirements.txt && python manage.py runserver 0.0.0.0:8000"
  35. working_dir: /ace
  36. volumes:
  37. - "./ace-api:/ace"
  38. environment:
  39. HOST: 0.0.0.0
  40.  
  41. volumes:
  42. api-mysql:
Add Comment
Please, Sign In to add comment