-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.01 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
services:
postgres:
image: postgres:latest
container_name: postgres_container
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: ./backend_app
dockerfile: Dockerfile
ports:
- "8000:80"
volumes:
- ./backend_app:/app
depends_on:
- postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
frontend:
build:
context: ./frontend_app
dockerfile: Dockerfile
ports:
- "3000:5173"
volumes:
- ./frontend_app:/app
- /app/node_modules
# environment:
# - VITE_BACKEND_URL=http://localhost:8000
depends_on:
- backend
volumes:
postgres_data: