-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 874 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 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
40
41
version: '3.8'
services:
gateway:
build: gateway
image: gateway
container_name: gateway
ports:
- "8080:8080"
environment:
- SHAREIT_SERVER_URL=http://server:9090
server:
build: server
image: server
container_name: server
ports:
- "9090:9090"
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/shareit
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=4315
- TZ=Europe/Moscow
db:
image: postgres:13.7-alpine
container_name: db
ports:
- "6541:5432"
volumes:
- ./database:/docker-entrypoint-initdb.d
environment:
- POSTGRES_DB=shareit
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=4315
healthcheck:
test: pg_isready -U postgres -d shareit
interval: 10s
timeout: 5s
retries: 5