-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.15 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
version: "3.8"
services:
postgres:
image: postgres:14
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${DB_PORT}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME}"]
interval: 30s
timeout: 10s
retries: 5
networks:
- mynetwork
redis:
image: redis:6
ports:
- "${REDIS_PORT}:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
networks:
- mynetwork
# metabase:
# image: metabase/metabase:v0.45.1
# ports:
# - "3000:3000"
# environment:
# MB_DB_TYPE: postgres
# MB_DB_DBNAME: ${METABASE_DBNAME}
# MB_DB_PORT: ${DB_PORT}
# MB_DB_USER: ${DB_USERNAME}
# MB_DB_PASS: ${DB_PASSWORD}
# MB_DB_HOST: postgres
# depends_on:
# postgres:
# condition: service_healthy
# networks:
# - mynetwork
volumes:
postgres_data:
redis_data:
networks:
mynetwork: