Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. version: "3.7"
  2. services:
  3. api:
  4. build:
  5. context: .
  6. dockerfile: web.Dockerfile
  7. image: api
  8. networks:
  9. - todonet
  10. depends_on:
  11. - "db"
  12. env_file:
  13. - .env
  14. ports:
  15. - "9080:8080"
  16. container_name: apii
  17. db:
  18. image: mysql:5
  19. env_file:
  20. - .env
  21. networks:
  22. - todonet
  23. ports:
  24. - "3306:3306"
  25. # we can prepopulate database with .sql file by uncommenting volumes
  26. # volumes:
  27. # - ./initial.sql:/docker-entrypoint-initdb.d/init.sql
  28. container_name: todo_db
  29. networks:
  30. todonet:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement