-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcompose.yaml
More file actions
172 lines (164 loc) · 4.27 KB
/
Copy pathcompose.yaml
File metadata and controls
172 lines (164 loc) · 4.27 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
version: '3.4'
services:
epigraphhub-base:
image: epigraphhub/superset-base
env_file:
- ../.env
profiles:
- donotstart
build:
context: ..
dockerfile: docker/superset/Dockerfile.base
args:
# note: if you want to use a specific UID and GID, ensure to add it to
# the .env file
- UID=${UID:-1000}
- GID=${GID:-1000}
epigraphhub-superset:
image: epigraphhub/superset
restart: unless-stopped
build:
context: ..
dockerfile: docker/superset/Dockerfile.superset
args:
# note: if you want to use a specific UID and GID, ensure to add it to
# the .env file
- UID=${UID:-1000}
- GID=${GID:-1000}
env_file:
- ../.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/health"]
interval: 60s
timeout: 10s
retries: 5
start_period: 40s # requires docker-compose 3.4
volumes:
- ..:/opt/EpiGraphHub
- ${SUPERSET_DB_PATH_DIR_HOST}:/opt/data/superset/
- ${POSTGRES_DUMP_HOST}:${POSTGRES_DUMP_CONTAINER}
ports:
- ${SUPERSET_PORT}:8088
depends_on:
- epigraphhub-db
- epigraphhub-redis
- epigraphhub-celery
- epigraphhub-celery-beat
epigraphhub-redis:
hostname: epigraphhub-redis
restart: unless-stopped
image: redis:alpine
# environment:
# DISABLE_COMMANDS: "FLUSHDB,FLUSHALL,CONFIG"
# ALLOW_EMPTY_PASSWORD: "no"
# REDIS_PASSWORD: "${REDIS_PASSWORD}"
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 60s
timeout: 5s
retries: 5
start_period: 30s # requires docker-compose 3.4
volumes:
- redis:/data
epigraphhub-celery:
image: epigraphhub-celery
restart: unless-stopped
build:
context: ..
dockerfile: docker/celery/Dockerfile
depends_on:
- epigraphhub-redis
env_file:
- ../.env
volumes:
- ..:/opt/EpiGraphHub
- ${SUPERSET_DB_PATH_DIR_HOST}:/opt/data/superset/
command: [
"celery",
"--app=superset.tasks.celery_app:app",
"worker",
"-Ofair",
"-l",
"INFO"
]
healthcheck:
test: ["CMD", "celery", "inspect", "-A", "superset.tasks.celery_app:app", "ping"]
interval: 60s
timeout: 10s
retries: 5
start_period: 30s # requires docker-compose 3.4
epigraphhub-celery-beat:
image: epigraphhub-celery
hostname: epigraphhub-celery-beat
restart: unless-stopped
build:
context: ..
dockerfile: docker/celery/Dockerfile
depends_on:
- epigraphhub-redis
env_file:
- ../.env
volumes:
- ..:/opt/EpiGraphHub
- ${SUPERSET_DB_PATH_DIR_HOST}:/opt/data/superset/
command: [
"celery",
"--app=superset.tasks.celery_app:app",
"beat",
"--pidfile",
"/tmp/celerybeat.pid",
"-l",
"INFO",
"-s",
"${SUPERSET_HOME}/celerybeat-schedule"
]
healthcheck:
test: ["CMD", "celery", "inspect", "-A", "superset.tasks.celery_app:app", "ping"]
interval: 60s
timeout: 10s
retries: 5
start_period: 30s # requires docker-compose 3.4
epigraphhub-db:
hostname: epigraphhub-db
restart: unless-stopped
build:
context: ..
dockerfile: docker/postgresql/Dockerfile
env_file:
- ../.env
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
PGDATA: /var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready -p ${POSTGRES_PORT} -U postgres"]
interval: 10s
timeout: 5s
retries: 10
command: -p ${POSTGRES_PORT}
epigraphhub-flower:
image: mher/flower:0.9.7
restart: unless-stopped
env_file:
- ../.env
depends_on:
- epigraphhub-redis
command: [
"flower",
"--broker=redis://redis:6379/0",
"--port=8888",
"--basic_auth=admin:${FLOWER_PASSWORD}"
]
ports:
- ${FLOWER_PORT}:8888
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:8888/healthcheck"]
interval: 60s
timeout: 10s
retries: 5
start_period: 40s # requires docker-compose 3.4
volumes:
redis:
pgdata: