Guest User

Untitled

a guest
Jun 8th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. services:
  2. nginx:
  3. image: nginx:1.13
  4. container_name: nginx
  5. restart: always
  6. ports:
  7. - "80:80"
  8. - "9090:9090"
  9. volumes:
  10. - ./nginx/conf.d:/etc/nginx/conf.d
  11. - ./nginx/html:/usr/share/nginx/html
  12.  
  13. webapp:
  14. build: WebApp
  15. container_name: webapp
  16. environment:
  17. - WEBAPPDB=jdbc:mysql://192.168.101.129:3306/webapp?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
  18. expose:
  19. - "8080"
  20. depends_on:
  21. - nginx
  22. version: '2'
  23.  
  24. <Resource
  25. auth="Container"
  26. driverClassName="com.mysql.jdbc.Driver"
  27. type="javax.sql.DataSource"
  28.  
  29. initialSize="0"
  30. maxActive="10"
  31. maxIdle="5"
  32. maxWait="5000"
  33. minIdle="0"
  34. timeBetweenEvictionRunsMillis="34000"
  35. minEvictableIdleTimeMillis="55000"
  36.  
  37. testOnBorrow="true"
  38. testWhileIdle="true"
  39. testOnReturn="false"
  40. validationQuery="SELECT 1 FROM dual"
  41. validationInterval="30000"
  42. removeAbandoned="true"
  43. removeAbandonedTimeout="10"
  44.  
  45. name="jdbc/webapp"
  46. username="username"
  47. password="password"
  48. url="${WEBAPPDB}"
  49. />
Add Comment
Please, Sign In to add comment