-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (51 loc) · 1.19 KB
/
docker-compose.yaml
File metadata and controls
57 lines (51 loc) · 1.19 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Services
services:
# Spring Batch Frontend
spring_batch_frontend:
build:
context: ./spring-batch-frontend/.
args:
NEXT_PUBLIC_BACKEND_URL: http://localhost:8080
container_name: spring_batch_frontend
ports:
- "3000:3000"
depends_on:
- spring_batch_backend
networks:
- my-network
# Spring Batch Backend
spring_batch_backend:
build: ./spring-batch-backend/.
container_name: spring_batch_backend
environment:
- DATABASE_URL=jdbc:postgresql://postgres_batch_db:5432/batch_db
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
ports:
- "8080:8080"
depends_on:
- postgres_batch_db
networks:
- my-network
# PostgreSQL
postgres_batch_db:
image: postgres:15.2
container_name: postgres_batch_db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- my-network
# Volumes
volumes:
postgres_data:
# Networks
networks:
my-network:
driver: bridge