-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
72 lines (65 loc) · 1.45 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
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
nginx:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
- metabase
mongo:
image: mongo
ports:
- "27017:27017"
redis:
image: redis
ports:
- "6379:6379"
web:
build: .
command: chmod +x boot.sh
command: ./boot.sh
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- mongo
- redis
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
ports:
- "5433:5432"
volumes:
- ./postgres_metabase:/postgres_metabase
metabase:
image: metabase/metabase
ports:
- "3000:3000"
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_PASS}"
MB_DB_HOST: "${MB_DB_HOST}"
depends_on:
- postgres
- dkr
dkr:
image: docker
privileged: true
working_dir: "/dkr"
volumes:
- ".:/dkr"
- "/var/run/docker.sock:/var/run/docker.sock"
command: docker exec 20172querocultura_postgres_1 bash -c "sleep 15 && psql metabase quero_cultura -f /postgres_metabase/metabase.sql"
depends_on:
- postgres