This commit is contained in:
@@ -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
|
||||
isolated:
|
||||
driver: bridge
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user