-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·58 lines (53 loc) · 1.31 KB
/
docker-compose.yaml
File metadata and controls
executable file
·58 lines (53 loc) · 1.31 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
version: "3.9"
services:
metabase:
image: metabase/metabase:${METABASE_TAG}
container_name: ${PROJECT_NAME}-metabase
hostname: metabase
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
MB_DB_TYPE: postgres
MB_DB_HOST: postgres
MB_DB_PORT: 5432
MB_DB_PASS: $DB_PASSWORD
MB_DB_DBNAME: $DB_NAME
MB_DB_USER: $DB_USER
MB_DB_FILE: /metabase-data/metabase.db
ports:
- ${METABASE_PORT}:3000
volumes:
- metabase-data:/metabase-data
postgres:
image: postgres:${POSTGRES_TAG}
container_name: ${PROJECT_NAME}-postgres
hostname: postgres
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
ports:
- ${DB_PORT}:5432
volumes:
- postgres-data:/var/lib/postgresql/data
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
adminer:
image: adminer:${ADMINER_TAG}
container_name: ${PROJECT_NAME}-adminer
hostname: adminer
restart: unless-stopped
stop_grace_period: 10s
env_file: .env
ports:
- ${ADMINER_PORT}:8080
networks:
default:
name: $PROJECT_NAME
driver: bridge
volumes:
postgres-data: {}
metabase-data: {}