generated from yandex-praktikum/java-shareit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (37 loc) · 874 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (37 loc) · 874 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
version: '3.8'
services:
gateway:
build: ./gateway
image: gateway_image
container_name: gateway_container
ports:
- "8080:8080"
depends_on:
- server
- postgres
environment:
- SHAREIT_SERVER_URL=http://server:9090
server:
build: ./server
image: server_image
container_name: server_container
ports:
- "9090:9090"
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/shareit
- DB_NAME=shareit
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=root
- DB_HOST=postgres
- DB_PORT=6541
postgres:
image: postgres:13.7-alpine
container_name: shareit_db_container
ports:
- "6541:5432"
environment:
- POSTGRES_DB=shareit
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root