generated from yandex-praktikum/java-explore-with-me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.27 KB
/
docker-compose.yml
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
version: '3.1'
services:
ewm-db:
image: postgres:14-alpine
container_name: events_postgres_container
ports:
- "6542:5432"
environment:
- POSTGRES_DB=event-db
- POSTGRES_USER=iameventroot
- POSTGRES_PASSWORD=iameventroot
ewm-service:
build: event-service
container_name: event_service_container
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- ewm-db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://ewm-db:5432/event-db
- SPRING_DATASOURCE_USERNAME=iameventroot
- SPRING_DATASOURCE_PASSWORD=iameventroot
- STATS_SERVER_URL=http://stats-server:9090
stats-db:
image: postgres:14-alpine
container_name: statistics_postgres_container
ports:
- "6541:5432"
environment:
- POSTGRES_DB=statistics-db
- POSTGRES_USER=iamstatsroot
- POSTGRES_PASSWORD=iamstatsroot
stats-server:
build: statistics-service/statistics-server
container_name: statistics_service_container
ports:
- "9090:9090"
- "9091:9091"
depends_on:
- stats-db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://stats-db:5432/statistics-db
- SPRING_DATASOURCE_USERNAME=iamstatsroot
- SPRING_DATASOURCE_PASSWORD=iamstatsroot