forked from inversepolarity/postgres-fastapi-vite-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.27 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
57
58
59
version: "3.8"
services:
postgres:
image: postgres:18
restart: always
container_name: postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: vector
networks:
- local
adminer:
image: adminer:latest
environment:
ADMINER_DEFAULT_SERVER: postgres
ports:
- 8080:8080
networks:
- local
backend:
networks:
- local
build: ./backend
restart: always
ports:
- "8000:8000"
depends_on:
- postgres
volumes:
- ./backend/src:/backend/src
frontend:
networks:
- local
build: ./frontend
command: npm run dev
restart: always
ports:
- "5173:5173"
depends_on:
- postgres
- backend
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./frontend:/frontend
- /frontend/node_modules
networks:
local:
driver: bridge
volumes:
postgres-data: