-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 991 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 991 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
45
46
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: github_pulse
POSTGRES_USER: github_pulse
POSTGRES_PASSWORD: github_pulse
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U github_pulse"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
ports:
- "8080:8080"
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: github_pulse
DB_USERNAME: github_pulse
DB_PASSWORD: github_pulse
GITHUB_TOKEN: ${GITHUB_TOKEN}
SPRING_FLYWAY_LOCATIONS: filesystem:/app/operations/database
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- backend
volumes:
postgres_data: