|
| 1 | +version: '3' |
| 2 | + |
| 3 | +volumes: |
| 4 | + postgres_data: |
| 5 | + name: postgres_data |
| 6 | + ferret_data: |
| 7 | + name: ferret_data |
| 8 | + |
| 9 | +networks: |
| 10 | + default: |
| 11 | + name: ferretdb |
| 12 | + |
| 13 | +services: |
| 14 | + postgres: |
| 15 | + image: ghcr.io/ferretdb/postgres-documentdb:17-0.104.0-ferretdb-2.3.1 |
| 16 | + container_name: ca-key-db |
| 17 | + volumes: |
| 18 | + - postgres_data:/var/lib/postgresql/data |
| 19 | + - ./config/postgres_db_user_setup.sql:/docker-entrypoint-initdb.d/init.sql |
| 20 | + environment: |
| 21 | + POSTGRES_DB: postgres |
| 22 | + POSTGRES_USER: ferret |
| 23 | + POSTGRES_PASSWORD: ferretpassword |
| 24 | + restart: always |
| 25 | + logging: |
| 26 | + options: |
| 27 | + max-file: "5" |
| 28 | + max-size: "10m" |
| 29 | + keycloak: |
| 30 | + container_name: ca-key |
| 31 | + image: quay.io/keycloak/keycloak:latest |
| 32 | + command: start-dev |
| 33 | + environment: |
| 34 | + KC_DB: postgres |
| 35 | + KC_DB_URL: jdbc:postgresql://ca-key-db:5432/keycloak |
| 36 | + KC_DB_USERNAME: keycloak |
| 37 | + KC_DB_PASSWORD: password |
| 38 | + KEYCLOAK_ADMIN: admin |
| 39 | + KEYCLOAK_ADMIN_PASSWORD: password |
| 40 | + ports: |
| 41 | + - 8080:8080 |
| 42 | + restart: always |
| 43 | + logging: |
| 44 | + options: |
| 45 | + max-file: "5" |
| 46 | + max-size: "10m" |
| 47 | + depends_on: |
| 48 | + - postgres |
| 49 | + ferretdb: |
| 50 | + image: ghcr.io/ferretdb/ferretdb:2.3.1 |
| 51 | + container_name: ca-ferretdb |
| 52 | + restart: always |
| 53 | + logging: |
| 54 | + options: |
| 55 | + max-file: "5" |
| 56 | + max-size: "10m" |
| 57 | + environment: |
| 58 | + - FERRETDB_POSTGRESQL_URL=postgresql://ferret:ferretpassword@ca-key-db:5432/postgres |
| 59 | + - FERRETDB_AUTH=0 |
| 60 | + volumes: |
| 61 | + - ferret_data:/data/db |
| 62 | + depends_on: |
| 63 | + - postgres |
| 64 | + back: |
| 65 | + build: |
| 66 | + context: "https://github.com/camicroscope/caracal.git#v3.12.0" |
| 67 | + args: |
| 68 | + viewer: "v3.12.1" |
| 69 | + depends_on: |
| 70 | + - "ferretdb" |
| 71 | + ports: |
| 72 | + - "4010:4010" |
| 73 | + container_name: ca-back |
| 74 | + restart: always |
| 75 | + logging: |
| 76 | + options: |
| 77 | + max-file: "5" |
| 78 | + max-size: "10m" |
| 79 | + volumes: |
| 80 | + - ./images/:/images/ |
| 81 | + - ./config/login.html:/src/static/login.html |
| 82 | + - ./jwt_keys/:/src/keys/ |
| 83 | + - ./config/routes.json:/src/routes.json |
| 84 | + - ./config/contentSecurityPolicy.json:/src/contentSecurityPolicy.json |
| 85 | + environment: |
| 86 | + DISABLE_SEC: "true" |
| 87 | + JWK_URL: "http://ca-back:4010/keycloak/realms/camic/protocol/openid-connect/certs" |
| 88 | + IIP_PATH: "http://ca-iip:8080/fcgi-bin/iipsrv.fcgi" |
| 89 | + MONGO_URI: "mongodb://ca-ferretdb" |
| 90 | + GENERATE_KEY_IF_MISSING: "true" |
| 91 | + iip: |
| 92 | + image: camicroscope/iipimage:version-3.11.0 |
| 93 | + container_name: ca-iip |
| 94 | + logging: |
| 95 | + options: |
| 96 | + max-file: "5" |
| 97 | + max-size: "10m" |
| 98 | + restart: always |
| 99 | + volumes: |
| 100 | + - ./images/:/images/ |
| 101 | + loader: |
| 102 | + build: "https://github.com/camicroscope/SlideLoader.git#v3.12.0" |
| 103 | + container_name: ca-load |
| 104 | + restart: always |
| 105 | + logging: |
| 106 | + options: |
| 107 | + max-file: "5" |
| 108 | + max-size: "10m" |
| 109 | + volumes: |
| 110 | + - ./images/:/images/ |
| 111 | + environment: |
| 112 | + DICOM_PORT: "11112" |
| 113 | + DICOM_UI_PORT: "8042" |
0 commit comments