chore(docker): add containerized development setup

This commit is contained in:
2026-09-21 16:59:55 +03:30
parent c54332cd61
commit 6e0b718811
7 changed files with 130 additions and 0 deletions

36
compose.yaml Normal file
View File

@@ -0,0 +1,36 @@
name: card-to-iban
services:
backend:
build:
context: ./backend
env_file:
- ./.env
environment:
SERVER_ADDR: 0.0.0.0:8080
DATABASE_PATH: /data/card-to-iban.db
FRONTEND_ORIGIN: ${FRONTEND_ORIGIN:-http://localhost:3000}
ports:
- "8080:8080"
volumes:
- card_to_iban_data:/data
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "http://127.0.0.1:8080/health"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
frontend:
build:
context: ./frontend
environment:
NUXT_PUBLIC_API_BASE_URL: ${NUXT_PUBLIC_API_BASE_URL:-http://localhost:8080}
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
volumes:
card_to_iban_data: