.drone.yml and docker-compose.yml fix
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2026-02-21 16:25:41 +03:00
parent 41bdc9736b
commit d386eda958
2 changed files with 40 additions and 23 deletions

View File

@@ -1,10 +1,10 @@
services:
link-shortener:
build:
context: .
dockerfile: Dockerfile
image: ${IMAGE}
container_name: link-shortener-app
networks: [isolated]
networks:
- isolated
- proxy
depends_on:
redis:
condition: service_healthy
@@ -13,13 +13,13 @@ services:
expose:
- 8080
environment:
- SERVER_HOST=localhost
- VIRTUAL_HOST=link.dusiburg.ru
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=link.dusiburg.ru
- LETSENCRYPT_EMAIL=rezcjikov@mail.ru
- SERVER_PORT=8080
- REDIS_URL=redis://redis:6379
- SERVER_HOST=${SERVER_HOST}
- VIRTUAL_HOST=${VIRTUAL_HOST}
- VIRTUAL_PORT=${VIRTUAL_PORT}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- SERVER_PORT=${SERVER_PORT}
- REDIS_URL=${REDIS_URL}
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/ping"]
interval: 5s
@@ -50,4 +50,6 @@ volumes:
networks:
isolated:
driver: bridge
driver: bridge
proxy:
external: true