Files
image-apiv2/docker-compose.yml
Beyhan Oğur 71eff2d979 first commit
2026-04-26 22:09:32 +03:00

47 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
image-apiv2:
build:
context: .
dockerfile: Dockerfile
container_name: image-apiv2
user: "1001:1001" # nextjs user (uid:gid)
ports:
- "3151:3000"
networks:
- dokploy-network
environment:
- DATABASE_URL=${DATABASE_URL}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:3000}
- REGISTER_ENABLE=${REGISTER_ENABLE:-true}
- NODE_ENV=production
volumes:
# Uploads klasörünü persist et
- uploads_data:/app/public/uploads
restart: unless-stopped
volumes:
uploads_data:
networks:
dokploy-network:
external: true
# Opsiyonel: PostgreSQL ile birlikte kullanmak için
# depends_on:
# - postgres
# Opsiyonel: PostgreSQL veritabanı
# postgres:
# image: postgres:16-alpine
# container_name: image-api-db
# environment:
# - POSTGRES_USER=${POSTGRES_USER:-postgres}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
# - POSTGRES_DB=${POSTGRES_DB:-image_api}
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# restart: unless-stopped
# volumes:
# postgres_data: