Guest User

Untitled

a guest
Oct 11th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. version: "3"
  2.  
  3. services:
  4. api:
  5. image: "stevelacy/imagehere"
  6. command: ["/app/init"]
  7. ports:
  8. - 80
  9. depends_on:
  10. - migration
  11. networks:
  12. - api
  13. environment:
  14. POSTGRES_HOST: "postgres"
  15. POSTGRES_USER: "postgres"
  16. POSTGRES_DATABASE: "postgres"
  17. POSTGRES_PASSWORD: "postgres"
  18. migration:
  19. image: "stevelacy/imagehere"
  20. command: ["/app/init", "migrate"]
  21. depends_on:
  22. - postgres
  23. networks:
  24. - api
  25. environment:
  26. POSTGRES_HOST: "postgres"
  27. POSTGRES_USER: "postgres"
  28. POSTGRES_DATABASE: "postgres"
  29. POSTGRES_PASSWORD: "postgres"
  30.  
  31. postgres:
  32. image: postgres:10
  33. volumes:
  34. - ./db-data:/var/lib/postgresql/data
  35. networks:
  36. - api
  37. environment:
  38. POSTGRES_PASSWORD: "postgres"
  39.  
  40. nginx-proxy:
  41. image: jwilder/nginx-proxy
  42. ports:
  43. - "80:80"
  44. volumes:
  45. - /var/run/docker.sock:/tmp/docker.sock:ro
  46. # Custom nginx config added here:
  47. - ./nginx.conf:/etc/nginx/conf.d/custom.conf:ro
  48. networks:
  49. - api
  50.  
  51. # this is for static files from the HOST system.
  52. nginx:
  53. image: kyma/docker-nginx
  54. command: ["nginx"]
  55. ports:
  56. - 80
  57. volumes:
  58. - ./html/:/var/www/
  59. environment:
  60. VIRTUAL_HOST: media.mydomain.com
  61. networks:
  62. - api
  63. networks:
  64. api:
  65.  
  66. volumes:
  67. db-data:
Add Comment
Please, Sign In to add comment