-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
35 lines (32 loc) · 943 Bytes
/
docker-compose.yaml
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
version: '2'
services:
news-api:
image: 'news-api-image:latest'
build: news-api\
container_name: news-api
ports:
- "8888:8888"
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres-news-test:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=admin
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
news-ingestion:
image: 'news-ingestion-image:latest'
build: news-ingestion\
container_name: news-ingestion
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres-news-test:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=admin
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
db:
image: 'postgres:14.3-alpine'
container_name: postgres-news-test
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin