bundle frontend too
This commit is contained in:
parent
850d977e8e
commit
660da70666
6 changed files with 162 additions and 9 deletions
|
@ -16,7 +16,42 @@ services:
|
|||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- shortener-network
|
||||
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- API_URL=${API_URL:-http://localhost:8080}
|
||||
container_name: shortener-app
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://shortener:shortener123@db:5432/shortener
|
||||
- SERVER_HOST=0.0.0.0
|
||||
- SERVER_PORT=8080
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
networks:
|
||||
- shortener-network
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
|
||||
networks:
|
||||
shortener-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
shortener-data:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue