reset
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-21 19:44:47 +03:00
parent 4b8d776bd5
commit 04830681b9

View File

@@ -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:
isolated:
driver: bridge
proxy:
external: true