-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
45 lines (43 loc) · 902 Bytes
/
docker-compose.dev.yaml
File metadata and controls
45 lines (43 loc) · 902 Bytes
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
services:
backend:
build:
context: ./backend
target: dev
volumes:
- ./backend:/app
ports:
- 8000:8000
command: >
bash -c "alembic upgrade head && \
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"
depends_on:
db:
condition: service_healthy
env_file:
- .env
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
args:
VITE_API_URL: ${VITE_API_URL}
VITE_ENV: ${VITE_ENV}
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- 3000:5173
env_file:
- .env
db:
image: postgres:15
environment:
POSTGRES_USER: evsy
POSTGRES_PASSWORD: evsy
POSTGRES_DB: evsy
# ports:
# - 5432:5432
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'evsy']
interval: 3s
retries: 5