This commit is contained in:
@@ -3,12 +3,11 @@ services:
|
|||||||
image: ${IMAGE}
|
image: ${IMAGE}
|
||||||
container_name: link-shortener-app
|
container_name: link-shortener-app
|
||||||
networks:
|
networks:
|
||||||
- link-shortener_isolated
|
- isolated
|
||||||
|
- proxy
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
environment:
|
environment:
|
||||||
@@ -19,17 +18,18 @@ services:
|
|||||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
||||||
- SERVER_PORT=${SERVER_PORT}
|
- SERVER_PORT=${SERVER_PORT}
|
||||||
- REDIS_URL=${REDIS_URL}
|
- REDIS_URL=${REDIS_URL}
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-fsS", "http://localhost:8080/ping"]
|
test: ["CMD", "wget", "-qO-", "http://localhost:8080/ping"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
retries: 20
|
retries: 10
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
container_name: link-shortener-redis
|
container_name: link-shortener-redis
|
||||||
networks: [link-shortener_isolated]
|
networks: [isolated]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
@@ -46,5 +46,7 @@ volumes:
|
|||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
link-shortener_isolated:
|
isolated:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user