Fixed docker compose for new test my eid

This commit is contained in:
Maria Haider 2025-03-18 15:16:42 +01:00
parent 912ffc9091
commit 287be23a92
Signed by: mariah
GPG key ID: 6EF520A1829E8B1D
2 changed files with 46 additions and 20 deletions

View file

@ -14,6 +14,8 @@ class eid::test_my_eid (
String $service_dir = '/opt/test-my-eid', String $service_dir = '/opt/test-my-eid',
) { ) {
if $version {
# Allow HTTP/HTTPS from load balancer servers # Allow HTTP/HTTPS from load balancer servers
$lb_ips = hiera_array("lb_${environment}_servers",[]) $lb_ips = hiera_array("lb_${environment}_servers",[])
sunet::nftables::allow { 'allow-http-from-lbs': sunet::nftables::allow { 'allow-http-from-lbs':
@ -37,4 +39,12 @@ class eid::test_my_eid (
content => template("eid/test_my_eid/idp-disco-${environment}.yml.erb") content => template("eid/test_my_eid/idp-disco-${environment}.yml.erb")
} }
sunet::docker_compose { 'test-my-eid':
content => template('eid/connector/docker-compose.yml.erb'),
service_name => 'test-my-eid',
compose_dir => '/opt/',
compose_filename => 'docker-compose.yml',
description => 'Test My eID'
}
}
} }

View file

@ -0,0 +1,16 @@
---
services:
test-my-eid:
image: docker.sunet.se/test-my-eid:<%= @version %>
container_name: test-my-eid
environment:
- SP_CONFIG_DIRECTORY=/etc/test-my-eid
- SPRING_CONFIG_ADDITIONAL_LOCATION=/etc/test-my-eid/
- SPRING_PROFILES_ACTIVE=<%= @environment %>
volumes:
- '<%= @service_dir %>:/etc/eidas-connector'
- '/etc/ssl:/etc/ssl'
ports:
- "443:8443"