SHARE
TWEET

Untitled

a guest Jun 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.   # Docker image based on 'tomcat:8-jre8-alpine'
  3.   my-server:
  4.     image: my-server:local
  5.     ports:
  6.       - 8081:8080
  7.     depends_on:
  8.       - flyway
  9.     command: bash -c "while ping -c1 flyway &>/dev/null; do sleep 1; echo 'Waiting migration ends!'; done; catalina.sh run"
  10.  
  11.   flyway:
  12.     image: boxfuse/flyway:5.2.4
  13.     volumes:
  14.       - $PWD/my-server/etc/db/sql:/flyway/sql
  15.       - $PWD/my-server/etc/db/conf/flyway.conf:/flyway/conf/flyway.conf
  16.     command: -url=jdbc:mysql://database/${MY_DB:-mydb} -user=${MYSQL_USER:-root} -password=${MYSQL_ROOT_PASSWORD:-root} -connectRetries=60 migrate
  17.     depends_on:
  18.       - database
  19.  
  20.   database:
  21.     image: mysql:8.0.16
  22.     environment:
  23.       - MYSQL_DATABASE=${MY_DB:-mydb}
  24.       - MYSQL_USER=${MYSQL_USER:-root}
  25.       - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
  26.     ports:
  27.       - 3306:3306
  28.     security_opt:
  29.       - seccomp=unconfined
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