Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.4'
- networks:
- smstake:
- ipam:
- config:
- - subnet: 10.0.10.0/24
- services:
- db:
- image: mysql:5.7
- networks:
- - smstake
- ports:
- - "3306"
- #env_file:
- # - configuration.env
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_DATABASE: smstake
- MYSQL_USER: tara
- MYSQL_PASSWORD: password
- volumes:
- - mysql_data:/var/lib/mysql
- deploy:
- mode: replicated
- replicas: 1
- placement:
- constraints:
- - node.role == manager
- app:
- image: SMSTAKE_VERSION
- ports:
- - 8000:80
- networks:
- - smstake
- depends_on:
- - migration
- deploy:
- mode: replicated
- replicas: 3
- migration:
- build: .
- image: SMSTAKE_VERSION
- command: php artisan migrate:fresh
- depends_on:
- - db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement