Skip to content

Commit e72f426

Browse files
Merge pull request #155 from CausalInferenceLab/154-restructure-docker-directory
refactor: 도커관련 파일의 구조 변경
2 parents 56ae3c8 + a511c9b commit e72f426

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed
File renamed without changes.

docker/Dockerfile.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git
2+
__pycache__/
3+
*.pyc
4+
*.pyo
5+
*.pyd
6+
*.db
7+
*.log
8+
venv/
9+
.env
10+
docker/

docker-compose.yml renamed to docker/docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ services:
22
streamlit:
33
hostname: streamlit
44
container_name: streamlit
5-
build: .
5+
build:
6+
context: ..
7+
dockerfile: docker/Dockerfile
68
ports:
79
- "8501:8501"
810
volumes:
9-
- .:/app
11+
- ../:/app
1012
env_file:
11-
- .env
13+
- ../.env
1214
environment:
1315
- STREAMLIT_SERVER_PORT=8501
1416
- DATABASE_URL=postgresql://pgvector:pgvector@pgvector:5432/streamlit
@@ -27,7 +29,6 @@ services:
2729
- "5432:5432"
2830
volumes:
2931
- pgdata:/var/lib/postgresql/data
30-
- ./postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql
3132

3233
volumes:
3334
pgdata:

0 commit comments

Comments
 (0)