feat(docker): add Docker support with configuration files and entrypoint scripts

This commit is contained in:
Yusuf İpek
2026-04-09 15:54:03 +03:00
parent b1b1715578
commit e97d60cf36
13 changed files with 658 additions and 31 deletions
+53
View File
@@ -0,0 +1,53 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
env_file:
- .env.docker
environment:
DOCKER_DB_HOST: postgres
DOCKER_DB_PORT: "5432"
MINIO_HEALTHCHECK_URL: http://minio:9000/minio/health/live
ports:
- "3000:3000"
restart: unless-stopped
postgres:
image: postgres:16-alpine
env_file:
- .env.docker
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 20
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
env_file:
- .env.docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 20
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9001:9001"
volumes:
- minio-data:/data
restart: unless-stopped
volumes:
postgres-data:
minio-data: