-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (86 loc) · 2.3 KB
/
docker-compose.yml
File metadata and controls
87 lines (86 loc) · 2.3 KB
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
services:
metabase:
image: metabase/metabase-enterprise:v1.56.5
container_name: metabase
hostname: metabase
ports:
- 3000:3000
environment:
MB_EMBEDDING_APP_ORIGIN: "*"
MB_ENABLE_EMBEDDING: true
MB_SITE_URL: http://localhost:3000/
MB_PREMIUM_EMBEDDING_TOKEN: <your_token>
MB_LOAD_ANALYTICS_CONTENT: false
MB_LOAD_SAMPLE_CONTENT: false
MB_JWT_ENABLED: true
MB_JWT_IDENTITY_PROVIDER_URI: http://localhost:9090/api/auth
MB_JWT_SHARED_SECRET: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
MB_JWT_GROUP_SYNC: true
MB_JWT_GROUP_MAPPINGS: '{"viewer":[3]}'
JAVA_TOOL_OPTIONS: "-Xmx1536m"
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
reservations:
cpus: '1'
memory: 2048M
networks:
- metanet
healthcheck:
test: curl --fail -X GET -I http://localhost:3000/api/health || exit 1
interval: 15s
timeout: 5s
retries: 10
depends_on:
sample-database:
condition: service_healthy
setup:
image: python:3-alpine
container_name: setup
volumes:
- ./setup/:/app/
networks:
- metanet
depends_on:
metabase:
condition: service_healthy
command: sh -c "pip install --disable-pip-version-check -r /app/requirements.txt && python /app/setup.py"
deploy:
resources:
limits:
cpus: '1'
memory: 64M
reservations:
cpus: '0.5'
memory: 32M
environment:
host: http://metabase
port: 3000
# Change this to your own database connection string
connection_string: "postgres://metabase:metasample123@postgres-data1:5432/sample"
table: Orders
# Remove this service if you are using your own database
sample-database:
image: metabase/qa-databases:postgres-sample-12
container_name: postgres-data1
hostname: postgres-data1
networks:
- metanet
deploy:
resources:
limits:
cpus: '1'
memory: 1024M
reservations:
cpus: '1'
memory: 1024M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U metabase -d sample"]
interval: 5s
timeout: 5s
retries: 3
networks:
metanet:
driver: bridge