Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.1"
- services:
- web:
- image: registry.gitlab.com/xxxx/xxxx:latest
- deploy:
- replicas: 2
- ports:
- - "8888:80"
- mysql:
- image: mysql:latest
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_USER: user
- MYSQL_PASS: password
- ports:
- - "8889:3306"
- volumes:
- - mysql-data:/var/lib/mysql
- volumes:
- mysql-data:
- docker stack deploy --compose-file docker-compose.yml xxxx-learn
Add Comment
Please, Sign In to add comment