-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (48 loc) · 959 Bytes
/
docker-compose.dev.yml
File metadata and controls
52 lines (48 loc) · 959 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
46
47
48
49
50
51
52
services:
database:
image: pgvector/pgvector:pg16
ports:
- 5439:5432
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U postgres
start_period: 10s
timeout: 1s
retries: 5
interval: 5s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
depends_on:
database:
condition: service_healthy
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 8123:8000
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- ./backend:/backend
env_file:
- .env
nginx_dev:
image: nginx:alpine
ports:
- 8080:5173
volumes:
- ./nginx/nginx_dev.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
volumes:
postgres_data:
driver: local