-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.03 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
services:
db:
image: "postgres:latest"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: SHAKES99
POSTGRES_DB: solarwatch
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./solar-watch
ports:
- "8081:8081"
depends_on:
db:
condition: service_healthy
environment:
DB_USERNAME: postgres
DB_PASSWORD: SHAKES99
DB_URL: jdbc:postgresql://db:5432/solarwatch
SECRET_KEY: K======================CodeCool=Spring===========================
EXPIRATION: 6800000
PIC_API: U-Jjh4-1Wf6e9LPpSHem9H3VBdFX5bKPkv1xaGhrVRU
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_JPA_DATABASE_PLATFORM: org.hibernate.dialect.PostgreSQLDialect
frontend:
build: ./Frontend/solarWatch
depends_on:
[backend]
ports:
[5173:80]