Advertisement
huezohuezo1990

docker

Aug 23rd, 2018
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. docker pull nextcloud:latest
  2.  
  3. docker run -d -p 80:80 --name nextcloud \
  4. --restart always \
  5. -v $HOME/nextcloud/nextcloud:/var/www/html \
  6. -v $HOME/nextcloud/apps:/var/www/html/custom_apps \
  7. -v $HOME/nextcloud/config:/var/www/html/config \
  8. -v $HOME/nextcloud/data:/var/www/html/data \
  9. -v $HOME/nextcloud/theme:/var/www/html/themes/ \
  10. nextcloud:latest
  11.  
  12.  
  13. docker run -i -t -d  --restart=always --name onlyoffice -p 8077:80 onlyoffice/documentserver
  14.  
  15.  
  16.  
  17. =================================
  18.  
  19. version: "3.3"
  20.  
  21. services:
  22.   wordpress:
  23.     image: wordpress
  24.     ports:
  25.       - "8080:80"
  26.     networks:
  27.       - overlay
  28.     deploy:
  29.       mode: replicated
  30.       replicas: 2
  31.       endpoint_mode: vip
  32.  
  33.   mysql:
  34.     image: mysql
  35.     volumes:
  36.        - db-data:/var/lib/mysql/data
  37.     networks:
  38.        - overlay
  39.     deploy:
  40.       mode: replicated
  41.       replicas: 2
  42.       endpoint_mode: dnsrr
  43.  
  44. volumes:
  45.   db-data:
  46.  
  47. networks:
  48.   overlay:
  49.  
  50.  
  51.  
  52. ============================
  53.  
  54. version: '3'
  55. services:
  56.   redis:
  57.     image: redis:alpine
  58.     deploy:
  59.       resources:
  60.         limits:
  61.           cpus: '0.50'
  62.           memory: 50M
  63.         reservations:
  64.           cpus: '0.25'
  65.           memory: 20M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement