-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
66 lines (63 loc) · 1.58 KB
/
docker-compose.yaml
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
services:
postgres:
image: postgres:latest
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
networks:
- metanet
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test:
["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- "5050:80"
networks:
- metanet
depends_on:
postgres:
condition: service_healthy
metabase:
image: metabase/metabase:latest
container_name: metabase
restart: unless-stopped
environment:
MB_DB_TYPE: ${MB_DB_TYPE}
MB_DB_DBNAME: ${MB_DB_DBNAME}
MB_DB_PORT: ${MB_DB_PORT}
MB_DB_USER: ${MB_DB_USER}
MB_DB_PASS: ${MB_DB_PASSWORD}
MB_DB_HOST: ${MB_DB_HOST}
JAVA_TIMEZONE: ${JAVA_TIMEZONE}
JAVA_OPTS: "-Xmx1g -Xms512m"
ports:
- "3000:3000"
networks:
- metanet
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: curl --fail -I http://localhost:3000/api/health || exit 1
interval: 30s
timeout: 10s
retries: 5
networks:
metanet:
driver: bridge