LONGYKING commited on
Commit
64eeef4
·
1 Parent(s): 6211b08

switched from port 8000 to port 8080 for websocket fix

Browse files
Files changed (4) hide show
  1. Dockerfile +3 -2
  2. Procfile +1 -1
  3. docker-compose.yml +7 -7
  4. run.py +2 -0
Dockerfile CHANGED
@@ -17,8 +17,9 @@ COPY . .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Make port 8501 available to the world outside this container
20
- EXPOSE 8000
 
21
 
22
  # Run chainlit when the container launches
23
- CMD ["python", "-m", "chainlit", "run", "chatxbt-assistant.py", "-h", "--port", "8000"]
24
 
 
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Make port 8501 available to the world outside this container
20
+ #EXPOSE 8000
21
+ EXPOSE 8080
22
 
23
  # Run chainlit when the container launches
24
+ CMD ["python", "-m", "chainlit", "run", "chatxbt-assistant.py", "-h", "--port", "8080"]
25
 
Procfile CHANGED
@@ -1 +1 @@
1
- web: docker-compose up --build
 
1
+ web: docker-compose up --build
docker-compose.yml CHANGED
@@ -3,20 +3,20 @@ services:
3
  image: chatxbt-web3-ai-assistant
4
  build: .
5
  ports:
6
- - "8000:8000"
7
  env_file:
8
  - .env
9
  depends_on:
10
  - db
11
- environment:
12
- - DATABASE_URL=postgresql://postgres:postgres@db:5432/mydatabase
13
 
14
  db:
15
  image: postgres:13
16
- environment:
17
- POSTGRES_USER: postgres
18
- POSTGRES_PASSWORD: postgres
19
- POSTGRES_DB: mydatabase
20
  volumes:
21
  - postgres_data:/var/lib/postgresql/data
22
 
 
3
  image: chatxbt-web3-ai-assistant
4
  build: .
5
  ports:
6
+ - "8080:8080"
7
  env_file:
8
  - .env
9
  depends_on:
10
  - db
11
+ # environment:
12
+ # - DATABASE_URL=postgresql://postgres:postgres@db:5432/mydatabase
13
 
14
  db:
15
  image: postgres:13
16
+ # environment:
17
+ # POSTGRES_USER: postgres
18
+ # POSTGRES_PASSWORD: postgres
19
+ # POSTGRES_DB: mydatabase
20
  volumes:
21
  - postgres_data:/var/lib/postgresql/data
22
 
run.py CHANGED
@@ -33,3 +33,5 @@ async def main():
33
  print(f"Error in main function: {e}")
34
 
35
  asyncio.run(main())
 
 
 
33
  print(f"Error in main function: {e}")
34
 
35
  asyncio.run(main())
36
+ # web: docker-compose up --build
37
+ # web: python -m chainlit run chatxbt-assistant.py -h --port 8080