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.14 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:
stats-server:
build: stats/server
image: stats-image
container_name: stats-container
ports:
- "9090:9090"
depends_on:
- stats-db
environment:
- spring_datasource_url=jdbc:postgresql://stats-db:5432/stats-db
- spring.datasource.user=postgres
- spring.datasource.password=postgres
stats-db:
image: postgres:14-alpine
container_name: stats-db-container
ports:
- "5432:5432"
environment:
- POSTGRES_DB=stats-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ewm-service:
build: ewm
image: ewm-image
container_name: ewm-container
ports:
- "8080:8080"
depends_on:
- ewm-db
environment:
- spring_datasource_url=jdbc:postgresql://ewm-db:5432/ewm-db
- stats-server.url=http://stats-server:9090
- spring.datasource.user=postgres
- spring.datasource.password=postgres
ewm-db:
image: postgres:14-alpine
container_name: ewm-db-container
ports:
- "6541:6541"
environment:
- POSTGRES_DB=ewm-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres