SHARE
TWEET

Untitled

a guest Jun 17th, 2019 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM openjdk:11-jdk-oracle
  2. EXPOSE 8086
  3. ADD target/app-0.0.1-SNAPSHOT.jar app-0.0.1-SNAPSHOT.jar
  4. ENTRYPOINT ["java", "-jar", "app-0.0.1-SNAPSHOT.jar"]
  5.      
  6. version: '3'
  7.  
  8. services:
  9.   db:
  10.     image: mysql:latest
  11.     environment:
  12.         MYSQL_ROOT_PASSWORD: root
  13.         MYSQL_PASSWORD: root
  14.         MYSQL_USER: root
  15.         MYSQL_DATABASE: tv
  16.     volumes:
  17.       - /data/mysql
  18.   television-app:
  19.     image: springboot-app
  20.     container_name: springboot-app
  21.     build:
  22.       context: ./
  23.       dockerfile: Dockerfile
  24.     depends_on:
  25.       - db
  26.     ports:
  27.       - 8081:8086
  28.     volumes:
  29.       - /data/spring-boot-app
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top