-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 801 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (35 loc) · 801 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
version: '3.8'
services:
app:
build: .
restart: always
ports:
- "8081:8081"
environment:
- SPRING_PROFILES_ACTIVE=prod
- DATABASE_URL=jdbc:postgresql://postgres:5432/krishisheba
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
- JWT_SECRET=krishisheba-super-secret-key-change-in-production-docker
depends_on:
- postgres
networks:
- krishisheba-net
postgres:
image: postgres:15-alpine
restart: always
environment:
- POSTGRES_DB=krishisheba
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- krishisheba-net
volumes:
pgdata:
networks:
krishisheba-net:
driver: bridge