From 4ef90492c04d4ba6f234b063b2e906aa77a473a0 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Fri, 23 Jun 2023 11:24:22 -0500 Subject: [PATCH] try a trick to get real ips behind docker swarm nginx, increase log space --- docker-compose.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index adb96ee..542550e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,13 +9,23 @@ services: - "node.labels.web==true" restart: always ports: - - 80:80 - - 443:443 + - mode: host + protocol: tcp + published: 80 + target: 80 + - mode: host + protocol: tcp + published: 443 + target: 443 volumes: - ssl_data:/etc/resty-auto-ssl depends_on: - guppe env_file: '.env' + logging: + driver: local + options: + max-size: '100m' guppe: image: datatitian/guppe deploy: @@ -34,7 +44,7 @@ services: logging: driver: local options: - max-size: '10m' + max-size: '100m' healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8085"] interval: 1m30s @@ -60,7 +70,7 @@ services: logging: driver: local options: - max-size: '10m' + max-size: '100m' mongodb: image: mongo:4.2 @@ -76,7 +86,7 @@ services: logging: driver: local options: - max-size: '10m' + max-size: '100m' volumes: mongo-data: