-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (42 loc) · 899 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
db:
image: postgres:16.3-alpine3.20
environment:
POSTGRES_DB: ${DB_NAME:-feedback}
POSTGRES_USER: ${DB_USER:-user}
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.2.5-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- DB_HOST=${DB_HOST:-db}
- DB_USER=${DB_USER:-user}
- DB_PASSWORD=${DB_PASSWORD:-password}
- DB_NAME=${DB_NAME:-feedback}
- RUST_LOG=debug
ports:
- "5095:5095"
depends_on:
- db
- redis
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5090:5090"
depends_on:
- backend
volumes:
postgres_data:
redis_data: