This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user