-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.05 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
version: '3.8'
services:
db:
build:
context: .
dockerfile: 'Dockerfile-${DB_TYPE}'
args:
db_name: ${DB_NAME}
db_user: ${DB_USER}
db_password: ${DB_PASSWORD}
db_port: ${DB_PORT}
restart: always
volumes:
- type: volume
source: ${DB_OUTSIDE_VOLUME}
target: ${DB_INSIDE_VOLUME}
adminer:
image: adminer
restart: always
ports:
- '${ADMINER_PORT}:8080'
depends_on:
- 'db'
metabase:
image: metabase/metabase
restart: always
environment:
MB_DB_FILE: '${MB_DB_FILE}'
MB_DB_TYPE: '${DB_TYPE}'
MB_DB_DBNAME: '${DB_NAME}'
MB_DB_PORT: '${DB_PORT}'
MB_DB_USER: '${DB_USER}'
MB_DB_HOST: 'db'
MB_DB_PASS: '${DB_PASSWORD}'
JAVA_TIMEZONE: '${MB_JAVA_TIMEZONE}'
ports:
# <Port exposed>:<Port running inside container>
- '${MB_PORT}:3000'
volumes:
# Volumes where Metabase data will be persisted
- 'mb-data:/metabase-data'
depends_on:
- 'db'
volumes:
db-data:
mb-data: