SHARE
TWEET

Untitled

a guest May 27th, 2018 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2.  
  3. services:
  4.   app:
  5.     image: yourapp:latest
  6.     container_name: app
  7.     networks:
  8.       - app-network
  9.     restart: always
  10.  
  11.   db:
  12.     image: db
  13.     container_name: db
  14.     volumes:
  15.       - /var/local/db/:/var/lib/mysql
  16.     environment:
  17.       - MYSQL_ROOT_PASSWORD=password
  18.       - MYSQL_DATABASE=database
  19.       - MYSQL_USER=user
  20.       - MYSQL_PASSWORD=userpassword
  21.     networks:
  22.       - app-network
  23.     restart: always
  24.  
  25. networks:
  26.   app-network:
  27.     external:
  28.       name: nginx-proxy
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