Advertisement
Guest User

nextcloud

a guest
Feb 21st, 2022
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.15 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.   db:
  5.     image: mariadb:10.5
  6.     command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  7.     restart: always
  8.     volumes:
  9.       - db:/var/lib/mysql
  10.     environment:
  11.       - MYSQL_ROOT_PASSWORD=)!wBkX#(5ffS22
  12.     env_file:
  13.       - db.env
  14.  
  15.   redis:
  16.     image: redis:alpine
  17.     restart: always
  18.  
  19.   app:
  20.     image: nextcloud:apache
  21.     restart: always
  22.     volumes:
  23.       - nextcloud:/var/www/html
  24.     environment:
  25.       - VIRTUAL_HOST=cloud.e-richsen.de
  26.       - LETSENCRYPT_HOST=cloud.e-richsen.de
  27.       - LETSENCRYPT_EMAIL=sven@e-richsen.de
  28.       - MYSQL_HOST=db
  29.       - REDIS_HOST=redis
  30.     env_file:
  31.       - db.env
  32.     depends_on:
  33.       - db
  34.       - redis
  35.     networks:
  36.       - proxy-tier
  37.       - default
  38.  
  39.   cron:
  40.     image: nextcloud:apache
  41.     restart: always
  42.     volumes:
  43.       - nextcloud:/var/www/html
  44.     entrypoint: /cron.sh
  45.     depends_on:
  46.       - db
  47.       - redis
  48.  
  49.   proxy:
  50.     build: ./proxy
  51.     restart: always
  52.     ports:
  53.       - 80:80
  54.       - 443:443
  55.     labels:
  56.       com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
  57.     volumes:
  58.       - certs:/etc/nginx/certs:ro
  59.       - vhost.d:/etc/nginx/vhost.d
  60.       - html:/usr/share/nginx/html
  61.       - /var/run/docker.sock:/tmp/docker.sock:ro
  62.     networks:
  63.       - proxy-tier
  64.  
  65.   letsencrypt-companion:
  66.     image: nginxproxy/acme-companion
  67.     restart: always
  68.     volumes:
  69.       - certs:/etc/nginx/certs
  70.       - acme:/etc/acme.sh
  71.       - vhost.d:/etc/nginx/vhost.d
  72.       - html:/usr/share/nginx/html
  73.       - /var/run/docker.sock:/var/run/docker.sock:ro
  74.     networks:
  75.       - proxy-tier
  76.     depends_on:
  77.       - proxy
  78.  
  79. # self signed
  80. #  omgwtfssl:
  81. #    image: paulczar/omgwtfssl
  82. #    restart: "no"
  83. #    volumes:
  84. #      - certs:/certs
  85. #    environment:
  86. #      - SSL_SUBJECT=servhostname.local
  87. #      - CA_SUBJECT=my@example.com
  88. #      - SSL_KEY=/certs/servhostname.local.key
  89. #      - SSL_CSR=/certs/servhostname.local.csr
  90. #      - SSL_CERT=/certs/servhostname.local.crt
  91. #    networks:
  92. #      - proxy-tier
  93.  
  94. volumes:
  95.   db:
  96.   nextcloud:
  97.   certs:
  98.   acme:
  99.   vhost.d:
  100.   html:
  101.  
  102. networks:
  103.   proxy-tier:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement