File size: 1,015 Bytes
eab3278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1713970
 
 
eab3278
 
1713970
 
4909df0
eab3278
 
 
 
1713970
 
 
 
eab3278
 
1713970
 
4909df0
1713970
 
 
 
eab3278
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# services:
#   backend:
#     build:
#       context: .
#       dockerfile: Src/Dockerfile
#     container_name: backend
#     ports:
#       - "8000:8000"
#     restart: always

#   frontend:
#     build:
#       context: .
#       dockerfile: Frontend/Dockerfile
#     container_name: frontend
#     ports:
#       - "7860:7860"
#     environment:
#       - BASE_URL=http://backend:8000
#     depends_on:
#       - backend
#     restart: always


services:
  backend:
    build:
      context: ./Src
      dockerfile: Dockerfile
    container_name: backend
    ports:
      - "7860:7860"
    volumes:
      - ../DataBase:/app/DataBase
      - ../Artifacts:/app/Artifacts
      - ../models:/app/models
    restart: always

  frontend:
    build:
      context: ./Frontend
      dockerfile: Dockerfile
    container_name: frontend
    ports:
      - "8501:8501"
    environment:
      - BASE_URL=http://backend:8000
    depends_on:
      - backend
    volumes:
      - ../DataBase:/app/DataBase
    restart: always