-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (34 loc) · 968 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (34 loc) · 968 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
version: '3.9'
services:
# todo-bot-application-application:
# container_name: todo-bot-application
# image: 'schegolevalex/todo-bot-application:0.0.1-SNAPSHOT'
# ports:
# - "8888:8080"
# depends_on:
# todo-database:
# condition: service_healthy
#
# environment:
# - SERVER_PORT=8080
# - SPRING_DATASOURCE_URL=jdbc:postgresql://todo-database:5432/postgres
#
# - SPRING_DATASOURCE_USERNAME=postgres
# - SPRING_DATASOURCE_PASSWORD=test
# - SPRING_JPA_HIBERNATE_DDL_AUTO=none
# - SPRING_JPA_SHOW-SQL=true
todo-database:
container_name: todo-database
image: postgres
restart: on-failure
ports:
- "5432:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 3