generated from yandex-praktikum/java-explore-with-me
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.15 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
version: '3.8'
services:
stats-server:
build: ./stats
container_name: stats_server
restart: always
ports:
- "9090:9090"
depends_on:
- stats-db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://stats-db:5432/stats
- POSTGRES_USER=ewm
- POSTGRES_PASSWORD=ewm
stats-db:
image: postgres:13.9-alpine3.16
container_name: stats_db
restart: always
volumes:
- /var/lib/postgresql/data/
ports:
- "6542:5432"
environment:
POSTGRES_DB: stats
POSTGRES_USER: ewm
POSTGRES_PASSWORD: ewm
ewm-service:
build: ./server
container_name: ewm_server
ports:
- "8080:8080"
depends_on:
- ewm-db
- stats-server
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://ewm-db:5432/ewm
- EWM_CONFIG_STATS_SERVER_URL=http://stats-server:9090
- POSTGRES_USER=ewm
- POSTGRES_PASSWORD=ewm
ewm-db:
image: postgres:13.9-alpine3.16
container_name: ewm_db
volumes:
- /var/lib/postgresql/data/
ports:
- "6541:5432"
environment:
POSTGRES_DB: ewm
POSTGRES_USER: ewm
POSTGRES_PASSWORD: ewm