try a trick to get real ips behind docker swarm nginx, increase log space

This commit is contained in:
Will Murphy 2023-06-23 11:24:22 -05:00
parent b323cf6dc5
commit 4ef90492c0

View file

@ -9,13 +9,23 @@ services:
- "node.labels.web==true" - "node.labels.web==true"
restart: always restart: always
ports: ports:
- 80:80 - mode: host
- 443:443 protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
volumes: volumes:
- ssl_data:/etc/resty-auto-ssl - ssl_data:/etc/resty-auto-ssl
depends_on: depends_on:
- guppe - guppe
env_file: '.env' env_file: '.env'
logging:
driver: local
options:
max-size: '100m'
guppe: guppe:
image: datatitian/guppe image: datatitian/guppe
deploy: deploy:
@ -34,7 +44,7 @@ services:
logging: logging:
driver: local driver: local
options: options:
max-size: '10m' max-size: '100m'
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8085"] test: ["CMD", "curl", "-f", "http://localhost:8085"]
interval: 1m30s interval: 1m30s
@ -60,7 +70,7 @@ services:
logging: logging:
driver: local driver: local
options: options:
max-size: '10m' max-size: '100m'
mongodb: mongodb:
image: mongo:4.2 image: mongo:4.2
@ -76,7 +86,7 @@ services:
logging: logging:
driver: local driver: local
options: options:
max-size: '10m' max-size: '100m'
volumes: volumes:
mongo-data: mongo-data: