Installing Soffid
Prerequisites
- Docker compose
- 8GB RAM
- > 10GB disk space (50GB)
Video Tutorial
Installation
version: "3.8"
services:
mariadb:
image: mariadb
container_name: compose-mariadb-service
environment:
MYSQL_ROOT_PASSWORD: admin123
MYSQL_DATABASE: soffid01
MYSQL_USER: admin
MYSQL_PASSWORD: admin1234
healthcheck:
test: "/usr/bin/mariadb --user=root --password=admin123 --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
networks:
- network
volumes:
- mariadb_data:/var/lib/mysql
console:
image: soffid/iam-console:3.5.8
container_name: iam-console-compose
environment:
DB_URL: jdbc:mariadb://compose-mariadb-service/soffid01
DB_USER: root
DB_PASSWORD: admin123
ports:
- 8088:8080
networks:
- network
volumes:
- console_trust:/opt/soffid/iam-console-3/trustedcerts
depends_on:
mariadb:
condition: service_healthy
sync-server:
image: soffid/iam-sync:3.5.2
hostname: iam-sync-compose
container_name: iam-sync-compose
environment:
SOFFID_PORT: 1760
SOFFID_HOSTNAME: iam-sync-compose.netcompose
SOFFID_MAIN: yes
DB_URL: jdbc:mysql://compose-mariadb-service/soffid01
DB_USER: root
DB_PASSWORD: admin123
networks:
- network
depends_on:
mariadb:
condition: service_healthy
networks:
network:
name: netcompose
driver: bridge
volumes:
mariadb_data:
name: compose-mariadbdata
console_trust:
name: compose_console_trustedcerts
Linux commands
Apply the YAML
docker compose up -d
Check containers
docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
compose-mariadb-service mariadb "docker-entrypoint.sh mariadbd" mariadb 25 minutes ago Up 25 minutes (healthy) 3306/tcp
iam-console-compose soffid/iam-console:3.5.8 "/bin/sh -c /opt/soffid/iam-console-3/start.sh" console 25 minutes ago Up 25 minutes 0.0.0.0:8088->8080/tcp, :::8088->8080/tcp
iam-sync-compose soffid/iam-sync:3.5.2 "/bin/sh -c /opt/soffid/iam-sync/start.sh" sync-server 25 minutes ago Up 25 minutes 760/tcp
View the console log
docker compose logs -f console
View the Sync Server log
docker compose logs -f sync-server