-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.3 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
version: '3.9'
services:
db:
image: postgres:14 # Specify version for consistency
container_name: pdf-postgres
restart: always
shm_size: 128mb
ports:
- "5432:5432" # PostgreSQL
environment:
POSTGRES_PASSWORD: password # Set your desired password
POSTGRES_USER: postgres # Specify the username
POSTGRES_DB: pdf_data # Specify the database name
volumes:
- db_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
adminer:
image: adminer
container_name: adminer
restart: always
ports:
- "8080:8080"
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: fastapi-backend
restart: always
ports:
- "8000:8000"
env_file:
- .env
volumes:
- .:/app
depends_on:
- db # Ensure PostgreSQL starts before backend
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: vite-frontend
restart: always
ports:
- "5173:5173"
volumes:
- ./frontend/front-end-dm-agent:/app/frontend/front-end-dm-agent
- frontend_node_modules:/app/frontend/front-end-dm-agent/node_modules
depends_on:
- backend
volumes:
db_data:
frontend_node_modules: