2022-03-17 14:08:27 +03:00
|
|
|
version: '3'
|
2021-03-31 13:43:22 +03:00
|
|
|
services:
|
|
|
|
# Actual Speckle Server dependencies
|
|
|
|
|
|
|
|
postgres:
|
2024-05-24 15:50:34 +03:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: docker/postgres/Dockerfile
|
2021-03-31 13:43:22 +03:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: speckle
|
|
|
|
POSTGRES_USER: speckle
|
|
|
|
POSTGRES_PASSWORD: speckle
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data/
|
2022-03-17 14:20:35 +03:00
|
|
|
- ./setup/db/10-docker_postgres_init.sql:/docker-entrypoint-initdb.d/10-docker_postgres_init.sql
|
2024-08-23 14:08:17 +03:00
|
|
|
- ./setup/db/11-docker_postgres_keycloack_init.sql:/docker-entrypoint-initdb.d/11-docker_postgres_keycloack_init.sql
|
2021-03-31 13:43:22 +03:00
|
|
|
ports:
|
2022-03-17 14:08:27 +03:00
|
|
|
- '127.0.0.1:5432:5432'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
|
|
|
redis:
|
2022-09-09 13:46:57 +03:00
|
|
|
image: 'redis:7-alpine'
|
2021-03-31 13:43:22 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- redis-data:/data
|
|
|
|
ports:
|
2022-03-17 14:08:27 +03:00
|
|
|
- '127.0.0.1:6379:6379'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
2021-09-15 21:05:00 +03:00
|
|
|
minio:
|
2022-03-17 14:08:27 +03:00
|
|
|
image: 'minio/minio'
|
2021-09-15 21:05:00 +03:00
|
|
|
command: server /data --console-address ":9001"
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- minio-data:/data
|
|
|
|
ports:
|
2022-03-17 14:08:27 +03:00
|
|
|
- '127.0.0.1:9000:9000'
|
|
|
|
- '127.0.0.1:9001:9001'
|
2021-03-31 13:43:22 +03:00
|
|
|
|
2024-08-23 14:08:17 +03:00
|
|
|
# Local OIDC provider for testing
|
|
|
|
keycloak:
|
|
|
|
image: quay.io/keycloak/keycloak:25.0
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
|
|
|
KC_DB: postgres
|
|
|
|
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
|
|
|
|
KC_DB_USERNAME: keycloak
|
|
|
|
KC_DB_PASSWORD: keycloak
|
|
|
|
|
|
|
|
KC_HOSTNAME: 127.0.0.1
|
|
|
|
KC_HOSTNAME_PORT: 9000
|
|
|
|
KC_HOSTNAME_STRICT: false
|
|
|
|
KC_HOSTNAME_STRICT_HTTPS: false
|
|
|
|
|
|
|
|
KC_LOG_LEVEL: info
|
|
|
|
KC_METRICS_ENABLED: true
|
|
|
|
KC_HEALTH_ENABLED: true
|
|
|
|
KEYCLOAK_ADMIN: admin
|
|
|
|
KEYCLOAK_ADMIN_PASSWORD: admin
|
|
|
|
ports:
|
|
|
|
- 8443:8443
|
|
|
|
- 9010:9000
|
|
|
|
- 8090:8080
|
|
|
|
command: start-dev --import-realm
|
|
|
|
volumes:
|
|
|
|
- ./setup/keycloak:/opt/keycloak/data/import
|
|
|
|
# user: root
|
|
|
|
# command: export --dir /opt/keycloak/backup --realm speckle
|
|
|
|
# volumes:
|
|
|
|
# - ./keycloak-backup:/opt/keycloak/backup
|
|
|
|
|
|
|
|
# Local email server for email troubleshooting
|
2022-09-09 13:46:57 +03:00
|
|
|
maildev:
|
2023-04-19 13:59:59 +03:00
|
|
|
restart: always
|
2022-09-09 13:46:57 +03:00
|
|
|
image: maildev/maildev
|
|
|
|
ports:
|
|
|
|
- '127.0.0.1:1080:1080'
|
|
|
|
- '127.0.0.1:1025:1025'
|
|
|
|
|
2021-03-31 13:43:22 +03:00
|
|
|
# Useful for debugging / exploring local databases
|
|
|
|
|
|
|
|
pgadmin:
|
|
|
|
image: dpage/pgadmin4
|
|
|
|
restart: always
|
|
|
|
environment:
|
2021-11-02 12:48:35 +03:00
|
|
|
PGADMIN_DEFAULT_EMAIL: admin@localhost.com
|
2021-03-31 13:43:22 +03:00
|
|
|
PGADMIN_DEFAULT_PASSWORD: admin
|
|
|
|
volumes:
|
|
|
|
- pgadmin-data:/var/lib/pgadmin
|
|
|
|
ports:
|
2022-03-17 14:08:27 +03:00
|
|
|
- '127.0.0.1:16543:80'
|
2021-03-31 13:43:22 +03:00
|
|
|
depends_on:
|
2022-03-17 14:08:27 +03:00
|
|
|
- postgres
|
2021-03-31 13:43:22 +03:00
|
|
|
|
|
|
|
redis_insight:
|
|
|
|
image: redislabs/redisinsight:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- redis_insight-data:/db
|
|
|
|
ports:
|
2022-03-17 14:08:27 +03:00
|
|
|
- '127.0.0.1:8001:8001'
|
2021-03-31 13:43:22 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
|
|
|
# Storage persistency
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
|
|
|
redis-data:
|
|
|
|
pgadmin-data:
|
|
|
|
redis_insight-data:
|
2021-09-15 21:05:00 +03:00
|
|
|
minio-data:
|