-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose-oidc-dev.yml
90 lines (89 loc) · 2.39 KB
/
docker-compose-oidc-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Docker Compose file for mwdb-core development environment
version: "3.3"
services:
minio:
image: minio/minio
command: server /data
volumes:
- /tmp/minio:/data
ports:
- "127.0.0.1:9000:9000"
environment:
- MINIO_ROOT_USER=mwdb-test-access
- MINIO_ROOT_PASSWORD=mwdb-test-key
mwdb:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- postgres
- redis
- minio
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- mwdb-vars.env
environment:
HOT_RELOAD: 1
MWDB_MAIL_SMTP: "mailhog:1025"
MWDB_MAIL_FROM: "[email protected]"
MWDB_RECAPTCHA_SITE_KEY: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
MWDB_RECAPTCHA_SECRET: "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
MWDB_ENABLE_OIDC: 1
MWDB_ENABLE_REGISTRATION: 1
# Uncomment if you want to test S3 functions
# MWDB_STORAGE_PROVIDER: s3
# MWDB_HASH_PATHING: 0
# MWDB_S3_STORAGE_ENDPOINT: "minio:9000"
# MWDB_S3_STORAGE_ACCESS_KEY: "mwdb-test-access"
# MWDB_S3_STORAGE_SECRET_KEY: "mwdb-test-key"
# MWDB_S3_STORAGE_BUCKET_NAME: "mwdb"
volumes:
- "./docker/mail_templates:/app/mail_templates"
- "./mwdb:/app/mwdb"
mwdb-web:
depends_on:
- mwdb
build:
context: .
dockerfile: deploy/docker/Dockerfile-web-dev
ports:
- "80:3000"
environment:
HOST: 0.0.0.0
REACT_APP_API_URL: "/api/"
volumes:
- "./mwdb/web/public:/app/public"
- "./mwdb/web/src:/app/src"
restart: on-failure
postgres:
image: postgres
restart: always
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- postgres-vars.env
ports:
- "127.0.0.1:54322:5432"
redis:
image: redis:alpine
mailhog:
image: mailhog/mailhog:latest
ports:
- "127.0.0.1:8025:8025"
keycloak_postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: bn_keycloak
POSTGRES_DB: bitnami_keycloak
POSTGRES_PASSWORD: bn_keycloak_password
keycloak:
image: bitnami/keycloak:latest
depends_on:
- keycloak_postgres
environment:
KEYCLOAK_DATABASE_HOST: keycloak_postgres
KEYCLOAK_DATABASE_PASSWORD: bn_keycloak_password
KEYCLOAK_HOSTNAME: "http://127.0.0.1:8080"
ports:
- "127.0.0.1:8080:8080"