requirement.dev.txt 삭제 .
This commit is contained in:
1 parent
8bb4402b33
commit
ebfa7a15bb
53 files changed
+1560
-1
No files matched your search
@@ -0,0 +1,36 @@
|
||||
# Negosium + Negodata 백엔드.
|
||||
# DB 는 compose 에서 관리하지 않는다 — 각 backend 는 config.docker.toml 의 접속 정보대로
|
||||
# 외부 PostgreSQL 에 연결한다(호스트에 떠 있는 로컬 postgres, 또는 따로 실행 중인 docker postgres).
|
||||
# 컨테이너에서 호스트의 DB 에 접속할 때는 host.docker.internal 을 쓴다.
|
||||
#
|
||||
# docker compose up -d
|
||||
# negosium 서버: http://localhost:9300/docs
|
||||
# negodata 서버: http://localhost:9400/docs
|
||||
#
|
||||
# DB 준비(최초 1회): postgres-init/01-schema.sql 을 대상 DB 에 적용한다.
|
||||
# psql -h <host> -p <port> -U <user> -f postgres-init/01-schema.sql
|
||||
# (negosium_db / negodata_db 와 tbl_account 생성)
|
||||
|
||||
services:
|
||||
negosium-backend:
|
||||
build: ./backend
|
||||
container_name: negosium-backend
|
||||
environment:
|
||||
APP_ENV: docker
|
||||
ports:
|
||||
- "9300:9300"
|
||||
# 컨테이너에서 호스트의 DB 로 접근 (config.docker.toml 의 host.docker.internal)
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
restart: unless-stopped
|
||||
|
||||
negodata-backend:
|
||||
build: ./negodata/backend
|
||||
container_name: negodata-backend
|
||||
environment:
|
||||
APP_ENV: docker
|
||||
ports:
|
||||
- "9400:9400"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
restart: unless-stopped
|
||||
Reference in new issue
Block a user