Advertisement
mitrakov

Simple Docker compose file

Oct 4th, 2018
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.48 KB | None | 0 0
  1. # docker-compose.yml
  2. # there is a file c:\Users\Docker\dump.sql with:
  3. CREATE DATABASE approval;
  4. # also note, that JDBC address of MySQL inside the approval container is:
  5. jdbc:mysql://aaa/approval?useSSL=false
  6.  
  7. version: "3"
  8. services:
  9.   aaa:
  10.     image: mysql:5.7
  11.     ports:
  12.      - 3307:3306
  13.     volumes:
  14.      - //c/Users/Docker/:/docker-entrypoint-initdb.d/
  15.     environment:
  16.      - MYSQL_ROOT_PASSWORD=1234
  17.   bbb:
  18.     image: mitrakov/approval
  19.     ports:
  20.      - 9002:9002
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement