-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
38 lines (36 loc) · 1.12 KB
/
docker-compose.yaml
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
version: '3.8'
services:
backend:
build: ./backend
image: recipe-app-api
restart: unless-stopped
volumes:
- ./backend/src:/app/src
env_file:
- ./backend/local.docker.env
# depends_on:
# - db
ports:
- '5000:5000'
frontend:
build: ./frontend
image: recipe-app-frontend
volumes:
- ./frontend/src:/app/src
environment:
- VITE_API_BASE_URL=http://localhost:5000
- VITE_ACCESS_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE3MDQ3ODcyOTUsImV4cCI6MTg5NDA4OTY5NSwiYXVkIjoicmVjaXBlLWFwcCIsInN1YiI6ImdlbmVyYWwtdXNlciIsIlJvbGUiOiJ1c2VyIn0.wWi6UwcrLB-ppS_vf9SWMMrWWJJwZtUImvzeX6gbPvs
ports:
- '5173:5173'
db:
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=development
- POSTGRES_USER=postgres
- POSTGRES_DB=dev_db
volumes:
postgres_data: