Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- nginx:
- image: nginx:1.13
- container_name: nginx
- restart: always
- ports:
- - "80:80"
- - "9090:9090"
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/html:/usr/share/nginx/html
- webapp:
- build: WebApp
- container_name: webapp
- environment:
- - WEBAPPDB=jdbc:mysql://192.168.101.129:3306/webapp?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
- expose:
- - "8080"
- depends_on:
- - nginx
- version: '2'
- <Resource
- auth="Container"
- driverClassName="com.mysql.jdbc.Driver"
- type="javax.sql.DataSource"
- initialSize="0"
- maxActive="10"
- maxIdle="5"
- maxWait="5000"
- minIdle="0"
- timeBetweenEvictionRunsMillis="34000"
- minEvictableIdleTimeMillis="55000"
- testOnBorrow="true"
- testWhileIdle="true"
- testOnReturn="false"
- validationQuery="SELECT 1 FROM dual"
- validationInterval="30000"
- removeAbandoned="true"
- removeAbandonedTimeout="10"
- name="jdbc/webapp"
- username="username"
- password="password"
- url="${WEBAPPDB}"
- />
Add Comment
Please, Sign In to add comment