forked from bcgov/cthub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (99 loc) · 2.14 KB
/
docker-compose.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
91
92
93
94
95
96
97
98
99
100
101
version: "3.9"
services:
redis:
image: redis:latest
volumes:
- redis:/data
db:
image: postgres
volumes:
- ./postgres:/docker-entrypoint-initdb.d
environment:
- POSTGRES_DB=postgres
- POSTGRES_MULTIPLE_DATABASES=superset
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
keycloak:
build: ./keycloak
ports:
- 8080:8080
- 8443:8443
metabase:
image: metabase/metabase
ports:
- 3001:3000
minio:
image: minio/minio
hostname: "minio"
volumes:
- ./minio/minio_files:/minio_files
env_file:
- minio.env
command: "minio server /minio_files --console-address \":9001\""
ports:
- 9000:9000
- 9001:9001
superset:
env_file: ./superset.env
image: apache/superset:latest-dev
command: ["/app/docker/run.sh"]
user: "root"
ports:
- 8088:8088
depends_on:
- db
- redis
volumes:
- ./superset:/app/docker
- superset_home:/app/superset_home
api:
build: ./django
command: >
sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
env_file:
- keycloak.env
- minio.env
- decoder.env
environment:
- ALLOWED_HOSTS=localhost
- CORS_ORIGIN_ALLOW_ALL=False
- CORS_ORIGIN_WHITELIST=http://localhost:3000
- DB_ENGINE=django.db.backends.postgresql
- DB_HOST=db
- DB_NAME=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
- DB_USER=postgres
- LOCAL_DEV=True
volumes:
- ./django:/api
ports:
- 8000:8000
depends_on:
db:
condition: service_healthy
web:
build: ./react
command: >
sh -c "npm install --legacy-peer-deps &&
npm start"
env_file:
- keycloak.env
environment:
- API_BASE=http://localhost:8000
- ENABLE_KEYCLOAK=true
volumes:
- ./react:/web
ports:
- 3000:3000
volumes:
superset_home:
external: false
redis:
external: false