prod containers fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-04 20:53:16 +09:00
parent 3732068464
commit ce7a8d9cf0
2 changed files with 3 additions and 10 deletions

View File

@@ -7,13 +7,12 @@ services:
- DJANGO_SECURE_HSTS_SECONDS=31536000 - DJANGO_SECURE_HSTS_SECONDS=31536000
- DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True - DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
- DJANGO_SECURE_HSTS_PRELOAD=True - DJANGO_SECURE_HSTS_PRELOAD=True
- DJANGO_ALLOWED_HOSTS=links.shareon.kr,shareon.kr,localhost,127.0.0.1
restart: unless-stopped restart: unless-stopped
frontend: frontend:
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- NEXT_PUBLIC_API_URL=http://links.shareon.kr - NEXT_PUBLIC_API_URL=https://links.shareon.kr
restart: unless-stopped restart: unless-stopped
db: db:

View File

@@ -21,26 +21,20 @@ services:
image: postgres:14 image: postgres:14
volumes: volumes:
- postgres_data:/var/lib/postgresql/data/ - postgres_data:/var/lib/postgresql/data/
- ./database/postgresql.conf:/etc/postgresql/postgresql.conf
- ./database/pg_hba.conf:/etc/postgresql/pg_hba.conf
env_file: env_file:
- .env - .env
environment: environment:
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 - POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
restart: unless-stopped restart: unless-stopped
# Убираем внешний порт для безопасности - доступ только внутри Docker сети
# ports:
# - "5432:5432"
networks: networks:
- catlink-network - catlink-network
command: postgres -c config_file=/etc/postgresql/postgresql.conf -c hba_file=/etc/postgresql/pg_hba.conf
frontend: frontend:
build: ./frontend/linktree-frontend build: ./frontend/linktree-frontend
ports: ports:
- "3000:3000" - "3000:3000"
environment: env_file:
- NEXT_PUBLIC_API_URL=http://localhost:8000 - .env
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- web - web