Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker pull nextcloud:latest
- docker run -d -p 80:80 --name nextcloud \
- --restart always \
- -v $HOME/nextcloud/nextcloud:/var/www/html \
- -v $HOME/nextcloud/apps:/var/www/html/custom_apps \
- -v $HOME/nextcloud/config:/var/www/html/config \
- -v $HOME/nextcloud/data:/var/www/html/data \
- -v $HOME/nextcloud/theme:/var/www/html/themes/ \
- nextcloud:latest
- docker run -i -t -d --restart=always --name onlyoffice -p 8077:80 onlyoffice/documentserver
- =================================
- 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:
- ============================
- version: '3'
- services:
- redis:
- image: redis:alpine
- deploy:
- resources:
- limits:
- cpus: '0.50'
- memory: 50M
- reservations:
- cpus: '0.25'
- memory: 20M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement