generated from yandex-praktikum/java-shareit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 1.28 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
version: '3.8'
services:
gateway:
build: gateway
image: gateway
container_name: gateway
ports:
- "8080:8080"
depends_on:
- server
environment:
- TZ=Europe/Yekaterinburg
- SHAREIT_SERVER_URL=http://server:9090
server:
build: server
image: server
container_name: server
ports:
- "9090:9090"
depends_on:
- db
environment:
- DB_NAME=shareit
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- DB_HOST=db
- DB_PORT=6541
- TZ=Europe/Yekaterinburg
db:
image: postgres:13.7-alpine
container_name: db
ports:
- "6541:5432"
environment:
- TZ=TZ=Europe/Yekaterinburg
- POSTGRES_DB=shareit
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root