Guest User

Untitled

a guest
Aug 29th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. version: '2.1'
  2.  
  3. services:
  4. wichita-frontend:
  5. build: wichita-api-dashboard-frontend # specify the directory of the Dockerfile
  6. ports:
  7. - "8080:80"
  8.  
  9. wichita-api:
  10. build: wichita-api-dashboard # specify the directory of the Dockerfile
  11. depends_on:
  12. - db
  13. environment:
  14. PORT: 3000
  15. AWS_ACCESS_KEY_ID: [PUT SECRET KEY ID HERE]
  16. AWS_SECRET_ACCESS_KEY: [PUT SECRET ACCESS KEY HERE]
  17. DB_HOST: db
  18. DB_USER: root
  19. DB_PASS: root
  20. DB_PORT: 3306
  21. ports:
  22. - "3000:3000"
  23. command: ["./wait-for-mysql.sh", "db"] # this will make the api server wait until mysql is up to start the node process
  24.  
  25. db:
  26. image: mysql
  27. command: --default-authentication-plugin=mysql_native_password
  28. restart: always
  29. ports:
  30. - "3307:3306"
  31. environment:
  32. MYSQL_ROOT_PASSWORD: root # if you change this, make sure you cange it on line 19 as well
  33. MYSQL_DATABASE: wichita_dev
Add Comment
Please, Sign In to add comment