-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
42 lines (40 loc) · 1.04 KB
/
docker-compose-dev.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
41
42
version: '3.4'
services:
app:
container_name: auth-service
image: auth_service:latest
build:
context: ./
dockerfile: Dockerfile.dev
ports:
- 8080:8080
- 5000:5000
depends_on:
- postgresqldb
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresqldb:5432/demo
- SPRING_DATASOURCE_USERNAME=user
- SPRING_DATASOURCE_PASSWORD=user
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- LOGGING_LEVEL_TN_KSOFTWARES_AUTH_REST_CONTROLLER_IMPLEMENTATION=DEBUG
healthcheck:
test: wget http://auth-service:8080/api/users/ || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
postgresqldb:
image: 'postgres:13.1-alpine'
container_name: auth-service-db
environment:
- POSTGRES_DB=demo
- POSTGRES_USER=user
- POSTGRES_PASSWORD=user
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s