-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 878 Bytes
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
version: "3.9"
services:
postgres:
image: postgres:15
container_name: sarathi-postgres
restart: always
environment:
POSTGRES_DB: sarathi
POSTGRES_USER: sarathi
POSTGRES_PASSWORD: sarathi
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: sarathi-redis
restart: always
ports:
- "6379:6379"
backend:
build: .
container_name: sarathi-backend
depends_on:
- postgres
- redis
environment:
SPRING_PROFILES_ACTIVE: dev
DB_URL: jdbc:postgresql://postgres:5432/sarathi
DB_USERNAME: sarathi
DB_PASSWORD: sarathi
REDIS_HOST: redis
REDIS_PORT: 6379
JWT_SECRET: dev-secret-key-very-secure-32chars
PORT: 8080
ports:
- "8080:8080"
volumes:
postgres_data: