fix izmjena dockera

This commit is contained in:
Nermin Karic
2026-11-22 22:38:10 +01:00
parent f5e2fcbf98
commit 19143514ab
12 changed files with 623 additions and 21 deletions

38
docker-compose.local.yml Normal file
View File

@@ -0,0 +1,38 @@
name: suman-local
services:
postgres:
image: postgres:16-alpine
container_name: umbrella_postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-suman_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-TvojaSigurnaLozinka123!}
POSTGRES_DB: ${POSTGRES_DB:-medusa-suman-doo}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-suman_user} -d ${POSTGRES_DB:-medusa-suman-doo}"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: umbrella-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata:
redisdata: