diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 74d61d4..cea0bbf 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -7,13 +7,12 @@ services: - DJANGO_SECURE_HSTS_SECONDS=31536000 - DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True - DJANGO_SECURE_HSTS_PRELOAD=True - - DJANGO_ALLOWED_HOSTS=links.shareon.kr,shareon.kr,localhost,127.0.0.1 restart: unless-stopped frontend: environment: - NODE_ENV=production - - NEXT_PUBLIC_API_URL=http://links.shareon.kr + - NEXT_PUBLIC_API_URL=https://links.shareon.kr restart: unless-stopped db: diff --git a/docker-compose.yml b/docker-compose.yml index 5f0fba9..ee5c5d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,26 +21,20 @@ services: image: postgres:14 volumes: - 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 environment: - POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 restart: unless-stopped - # Убираем внешний порт для безопасности - доступ только внутри Docker сети - # ports: - # - "5432:5432" networks: - catlink-network - command: postgres -c config_file=/etc/postgresql/postgresql.conf -c hba_file=/etc/postgresql/pg_hba.conf frontend: build: ./frontend/linktree-frontend ports: - "3000:3000" - environment: - - NEXT_PUBLIC_API_URL=http://localhost:8000 + env_file: + - .env restart: unless-stopped depends_on: - web