Guest User

Untitled

a guest
Mar 10th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. version: "3.1"
  2. services:
  3. web:
  4. image: registry.gitlab.com/xxxx/xxxx:latest
  5. deploy:
  6. replicas: 2
  7. ports:
  8. - "8888:80"
  9. mysql:
  10. image: mysql:latest
  11. environment:
  12. MYSQL_ROOT_PASSWORD: password
  13. MYSQL_USER: user
  14. MYSQL_PASS: password
  15. ports:
  16. - "8889:3306"
  17. volumes:
  18. - mysql-data:/var/lib/mysql
  19. volumes:
  20. mysql-data:
  21.  
  22. docker stack deploy --compose-file docker-compose.yml xxxx-learn
Add Comment
Please, Sign In to add comment