From 04830681b90630a72f59cf4ab09615abacc6c258 Mon Sep 17 00:00:00 2001 From: Giovanni Rezcjikov Date: Sat, 21 Feb 2026 19:44:47 +0300 Subject: [PATCH] reset --- docker-compose.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ef27a61..294343d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,11 @@ services: image: ${IMAGE} container_name: link-shortener-app networks: - - link-shortener_isolated + - isolated + - proxy depends_on: redis: condition: service_healthy - ports: - - "8080:8080" expose: - 8080 environment: @@ -19,17 +18,18 @@ services: - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL} - SERVER_PORT=${SERVER_PORT} - REDIS_URL=${REDIS_URL} + restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-fsS", "http://localhost:8080/ping"] + test: ["CMD", "wget", "-qO-", "http://localhost:8080/ping"] interval: 5s timeout: 2s - retries: 20 + retries: 10 start_period: 10s redis: image: redis:latest container_name: link-shortener-redis - networks: [link-shortener_isolated] + networks: [isolated] restart: unless-stopped volumes: - redis_data:/data @@ -46,5 +46,7 @@ volumes: driver: local networks: - link-shortener_isolated: - driver: bridge \ No newline at end of file + isolated: + driver: bridge + proxy: + external: true \ No newline at end of file