feat: add docker compose for employee management service #25
1 changed files with 29 additions and 0 deletions
29
compose.yml
Normal file
29
compose.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
volumes:
|
||||||
|
employee_postgres_data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres-employee:
|
||||||
|
container_name: postgres_employee
|
||||||
|
image: postgres:13.3
|
||||||
|
volumes:
|
||||||
|
- employee_postgres_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: employee_db
|
||||||
|
POSTGRES_USER: employee
|
||||||
|
POSTGRES_PASSWORD: secret
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|
||||||
|
employee:
|
||||||
|
container_name: employee
|
||||||
|
image: berndheidemann/employee-management-service:1.1.3
|
||||||
|
# image: berndheidemann/employee-management-service_without_keycloak:1.1
|
||||||
|
environment:
|
||||||
|
spring.datasource.url: jdbc:postgresql://postgres-employee:5432/employee_db
|
||||||
|
spring.datasource.username: employee
|
||||||
|
spring.datasource.password: secret
|
||||||
|
ports:
|
||||||
|
- "8089:8089"
|
||||||
|
depends_on:
|
||||||
|
- postgres-employee
|
Loading…
Add table
Reference in a new issue