-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 1.01 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
version: '3.8'
services:
flutter:
# Supondo que você tenha um Dockerfile configurado para o ambiente Flutter
build:
context: ./flutter-app
volumes:
- ./flutter-app:/app
# Se precisar de um emulador ou dispositivo, considere soluções externas
express-api:
build:
context: ./express-api
environment:
POSTGRES_HOST: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: expressdb
depends_on:
- db
ports:
- "3000:3000"
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: expressdb
volumes:
- db-data:/var/lib/postgresql/data
fastapi:
build:
context: ./fastapi-app
command: >
sh -c "pip install -r requirements.txt &&
huggingface-cli login &&
uvicorn main:app --host 0.0.0.0 --port 8000"
ports:
- "8000:8000"
volumes:
- ./fastapi-app:/app
volumes:
db-data: