Browse Source

add ceph static config, add replicas=2 for static sites

Josh Bicking 4 years ago
parent
commit
a6b9218e71
2 changed files with 6 additions and 17 deletions
  1. 0 16
      conf.d/static.conf
  2. 6 1
      docker-compose.yml

+ 0 - 16
conf.d/static.conf

@@ -1,16 +0,0 @@
-# Lil static file server
-server {
-    listen       80;
-    server_name  localhost;
-
-    #charset koi8-r;
-    #access_log  /var/log/nginx/host.access.log  main;
-
-    autoindex on;
-
-    location / {
-      root /home/app/;
-      proxy_max_temp_file_size 0;
-      index index.html;
-    }
-}

+ 6 - 1
docker-compose.yml

@@ -11,6 +11,7 @@ services:
       - 80:80
       - 443:443
     deploy:
+      replicas: 2  # https://youtu.be/btHpHjabRcc
       placement:
         constraints:
           - node.role == manager
@@ -32,6 +33,7 @@ services:
         - traefik.http.routers.traefik.tls.certresolver=le
         - traefik.http.routers.traefik.tls.domains[0].main=${DOMAIN}
         - traefik.http.routers.traefik.tls.domains[1].sans=*.${DOMAIN}
+
     volumes:
       - /var/run/docker.sock:/var/run/docker.sock:ro
       - ${CONTAINERS_DIR}/traefik:/certificates
@@ -59,6 +61,8 @@ services:
 
       # Enable the traefik dashboard
       - --api=true
+
+      - --providers.file.filename=/certificates/ceph.toml
     environment:
       - CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
       - CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
@@ -66,6 +70,7 @@ services:
   jekyll:
     image: jibby0/docker-jekyll-webhook
     deploy:
+      replicas: 2
       labels:
         - traefik.enable=true
         - traefik.http.routers.jekyll.tls=true
@@ -124,7 +129,7 @@ services:
     restart: always
 
   matrix:
-    image: matrixdotorg/synapse:v1.17.0-py3
+    image: matrixdotorg/synapse:v1.25.0
     deploy:
       labels:
         - traefik.enable=true