Created
September 21, 2019 23:00
-
-
Save PreetSangha/6d3c23f8b1bbf419cbf5b63457947e79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
wordpress: | |
image: wordpress | |
ports: | |
- 8080:80 | |
networks: | |
- overlay | |
deploy: | |
mode: replicated | |
replicas: 2 | |
endpoint_mode: vip | |
mysql: | |
image: mysql | |
volumes: | |
- db-data:/var/lib/mysql/data | |
networks: | |
- overlay | |
deploy: | |
mode: replicated | |
replicas: 2 | |
endpoint_mode: dnsrr | |
volumes: | |
db-data: | |
networks: | |
overlay: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment