-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 1017 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: 12345
POSTGRES_DB: shareit
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
server:
build:
context: ./server
ports:
- "9090:9090" # <-- теперь 9090!
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/shareit
SPRING_DATASOURCE_USERNAME: dbuser
SPRING_DATASOURCE_PASSWORD: 12345
SERVER_PORT: 9090 # <-- важно! Или укажи server.port в application.properties
TZ: "Asia/Yekaterinburg"
gateway:
build:
context: ./gateway
ports:
- "8080:8080" # <-- оставляем 8080!
depends_on:
- server
environment:
SHAREIT_SERVER_URL: http://server:9090 # <-- важно! Ссылаемся на server с новым портом
volumes:
pg_data: