-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (62 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
70 lines (62 loc) · 1.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
stats-db:
image: postgres:16.1
container_name: stat-db
ports:
- "5669:5432"
environment:
- POSTGRES_DB=stat-service-db
- POSTGRES_USER=statsUserDB
- POSTGRES_PASSWORD=statsDB
healthcheck:
test: pg_isready -q -d $$POSTGRES_DB -U $$POSTGRES_USER
timeout: 5s
interval: 5s
retries: 10
stats-server:
build: stats/stats-server
ports:
- "9090:9090"
depends_on:
- stats-db
environment:
- VALUE_PROFILE=dev
- SERVER_PORT=9090
- DB_NAME=stat-service-db
- POSTGRES_USER=statsUserDB
- POSTGRES_PASSWORD=statsDB
- DB_HOST=stats-db
- DB_PORT=5432
# - TZ=Europe/Samara
# - PGTZ=Europe/Samara
ewm-service:
build: main-service
ports:
- "8080:8080"
depends_on:
- stats-server
- ewm-db
environment:
- VALUE_PROFILE=dev
- SERVER_PORT=8080
- DB_NAME=main-ewm-db
- DB_HOST=ewm-db
- DB_PORT=5432
- STATS_SERVER_URL=http://stats-server:9090
- POSTGRES_USER=mainUserDB
- POSTGRES_PASSWORD=mainDB
ewm-db:
image: postgres:16.1
container_name: ewm-db
ports:
- "5670:5432"
environment:
- POSTGRES_DB=main-ewm-db
- POSTGRES_USER=mainUserDB
- POSTGRES_PASSWORD=mainDB
healthcheck:
test: pg_isready -q -d $$POSTGRES_DB -U $$POSTGRES_USER
timeout: 5s
interval: 5s
retries: 10