This commit is contained in:
2025-11-04 21:07:56 +09:00
parent ce7a8d9cf0
commit eb55d06c44
3 changed files with 5 additions and 3 deletions

View File

@@ -2,10 +2,10 @@
# ================================================
# Docker Compose command detection (v1 or v2)
DOCKER_COMPOSE := $(shell which docker-compose 2>/dev/null && echo "docker-compose" || (docker compose version >/dev/null 2>&1 && echo "docker compose" || echo ""))
DOCKER_COMPOSE := $(shell command -v docker-compose >/dev/null 2>&1 && echo "docker-compose" || echo "docker compose")
# Check if Docker Compose is available
ifeq ($(DOCKER_COMPOSE),)
ifndef DOCKER_COMPOSE
$(error Docker Compose not found. Please install Docker Compose v1 or v2)
endif

View File

@@ -3,7 +3,7 @@ services:
web:
environment:
- DJANGO_DEBUG=False
- DJANGO_SECURE_SSL_REDIRECT=False
- DJANGO_SECURE_SSL_REDIRECT=True
- DJANGO_SECURE_HSTS_SECONDS=31536000
- DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
- DJANGO_SECURE_HSTS_PRELOAD=True

View File

@@ -33,6 +33,8 @@ services:
build: ./frontend/linktree-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=https://links.shareon.kr
env_file:
- .env
restart: unless-stopped