Skip to main content

Docker

Using SAMO Auth server as docker image

Docker-container specific arguments:

  • DEBUG_ENABLED - enables JAVA debug port 8000 if set to 'true'
  • HTTPS_ENABLED - enables for https connection
  • HTTPS_CERTIFICATE_PATH - path where is your .pem SSL certificate
  • SECRET_PROPERTIES= for secret properties, for example client secret or passwords
docker-compose example snippet:
auth-server:
image: docker.asseco-ce.com/samo/server/samo-auth-server:${auth_server_version}
restart: always
environment:
- samo_env_configuration=${env_configuration}
- DEBUG_ENABLED=true
- HTTPS_ENABLED=true
- HTTPS_CERTIFICATE_PATH=/usr/local/data/common/certs/server.pem
- SECRET_PROPERTIES=--dataSource.password=$DEV_DATASOURCE_PASSWORD --lids.microsoftIDM.client_secret=$DEV_LIDS_MICROSOFTIDM_CLIENT_SECRET --ldap.password=$DEV_LDAP_PASSWORD
ports:
- "${auth_server_http_port}:8080"
- "${auth_server_https_port}:8443"
- "${auth_server_debug_port}:8000"
volumes:
- ${configuration_dir:-./configuration/packages}:/usr/local/configuration
- ${env_dir:-./}:/usr/local/environment
- ${data_dir}:/usr/local/data