-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.04 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
version: '3.1'
services:
stats-server:
build: stats/stats-server
image: ewm-stats-server
container_name: ewm-stats-server
ports:
- "9090:9090"
depends_on:
- stats-db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://stats-db:5432/stats
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=root
stats-db:
image: postgres:14-alpine
container_name: postgres-stats-db
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
- POSTGRES_DB=stats
ewm-service:
build: ewm-service
image: ewm-service
container_name: ewm-service
ports:
- "8080:8080"
depends_on:
- ewm-db
- stats-server
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://ewm-db:5432/ewm
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=root
ewm-db:
image: postgres:14-alpine
container_name: postgres-ewm-db
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
- POSTGRES_DB=ewm