-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.29 KB
/
docker-compose.yml
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
53
54
55
56
57
58
59
60
61
62
services:
fastapi:
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- mongodb
ports:
- "8000:8000"
command: uvicorn src.lexiclean.main:app --host 0.0.0.0 --port 8000
environment:
- MONGODB__URI=mongodb://root:example@mongodb:27017/lexiclean?authSource=admin
- MONGODB__DB_NAME=lexiclean
- AUTH__SECRET_KEY=secret
- AUTH__ALGORITHM=HS256
- AUTH__ACCESS_TOKEN_EXPIRE_MINUTES=360
- API__PREFIX=/api
networks:
- app-network
frontend:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- fastapi
- docs
command: npm run dev
environment:
- VITE_API_URL=http://localhost:8000/api
- VITE_DOCS_URL=http://localhost:4000
- VITE_GITHUB_URL=https://github.com/nlp-tlp/lexiclean
- NODE_ENV=development
networks:
- app-network
mongodb:
image: mongo:latest
ports:
- "27018:27017"
volumes:
- mongodb_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- app-network
docs:
build:
context: ./docs
ports:
- "4000:4000"
volumes:
mongodb_data:
networks:
app-network:
driver: bridge