generated from yandex-praktikum/java-explore-with-me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 1.08 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
50
51
52
53
version: '3.1'
services:
stats-db:
image: postgres:14-alpine
container_name: stats-db
ports:
- "5432:5432"
environment:
- POSTGRES_DB=stats
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
stats-server:
build: stats-service/
image: ewm-stats-image
container_name: stats-server
ports:
- "9090:9090"
depends_on:
- stats-db
environment:
- DB_HOST=stats-db
- DB_PORT=5432
- DB_NAME=stats
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
ewm-db:
image: postgres:14-alpine
container_name: ewm-db
ports:
- "6432:5432"
environment:
- POSTGRES_DB=main
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
ewm-service:
build: main-service/
image: ewm-main-image
container_name: ewm-service
ports:
- "8080:8080"
depends_on:
- ewm-db
- stats-server
environment:
- STATS_SERVER_URL=http://stats-server:9090
- DB_HOST=ewm-db
- DB_PORT=5432
- DB_NAME=main
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root