-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.43 KB
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
services:
db:
build: postgres
container_name: db
volumes:
- ./postgres:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_MULTIPLE_DATABASES: ${DB_DATABASE}
TZ: "GMT"
PGTZ: "GMT"
ports:
- "${DB_PORT}:${DB_PORT}"
backend:
build: be
container_name: backend
depends_on:
- db
environment:
DB_HOST: db
DB_PORT: ${DB_PORT}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
SECRET_KEY: ${SECRET_KEY}
ALGORITHM: ${ALGORITHM}
ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES}
REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}
SUPABASE_URL: ${SUPABASE_URL}
SUPABASE_SERVICE_KEY: ${SUPABASE_SERVICE_KEY}
SUPABASE_BUCKET: ${SUPABASE_BUCKET}
HF_TOKEN: ${HF_TOKEN}
ports:
- "8000:8000"
volumes:
- ./be:/app
command: >
sh -c "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
frontend:
build: fe
container_name: frontend
depends_on:
- backend
environment:
API_URL: ${FE_API_URL}
ports:
- "${FE_PORT}:3000"
volumes:
- ./fe:/app
- /app/node_modules
command: >
sh -c "npm install && npm run dev -- --hostname 0.0.0.0 --port 3000"