EMS/compose.yml

28 lines
638 B
YAML
Raw Permalink Normal View History

2024-12-18 08:35:34 +00:00
services:
postgres:
container_name: ems_postgres
image: postgres:17.2
volumes:
- ems_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: employee_db
POSTGRES_USER: employee
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"
api:
container_name: ems_api
image: berndheidemann/employee-management-service:1.1.3.1
depends_on:
- postgres
environment:
spring.datasource.url: jdbc:postgresql://ems_postgres:5432/employee_db
spring.datasource.username: employee
spring.datasource.password: secret
ports:
- "8080:8089"
volumes:
ems_data: