Advertisement
Guest User

Untitled

a guest
Apr 8th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. version: '3.4'
  2.  
  3. networks:
  4.   smstake:  
  5.     ipam:
  6.       config:
  7.         - subnet: 10.0.10.0/24
  8.  
  9.  
  10. services:
  11.  
  12.     db:
  13.         image: mysql:5.7
  14.         networks:
  15.           - smstake
  16.         ports:
  17.           - "3306"
  18.         #env_file:
  19.         #  - configuration.env
  20.         environment:
  21.           MYSQL_ROOT_PASSWORD: password
  22.           MYSQL_DATABASE: smstake
  23.           MYSQL_USER: tara
  24.           MYSQL_PASSWORD: password
  25.         volumes:
  26.           - mysql_data:/var/lib/mysql
  27.         deploy:
  28.           mode: replicated
  29.           replicas: 1
  30.           placement:
  31.             constraints:
  32.               - node.role == manager
  33.          
  34.          
  35.     app:
  36.         image: SMSTAKE_VERSION
  37.         ports:
  38.           - 8000:80
  39.         networks:
  40.           - smstake
  41.         depends_on:
  42.           - migration
  43.         deploy:
  44.           mode: replicated
  45.           replicas: 3
  46.          
  47.     migration:
  48.         build: .
  49.         image: SMSTAKE_VERSION
  50.         command: php artisan migrate:fresh
  51.         depends_on:
  52.           - db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement