-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
30 lines (28 loc) · 980 Bytes
/
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
version: "3.7"
services:
superset:
image: apache/superset
container_name: prefixed_superset
expose:
- 8088 # for nginx
ports:
- "8080:8088" # for direct access
command:
- bash
- -c
- "superset fab create-admin --username admin --firstname Superset --lastname Admin --email [email protected] --password admin
&& superset db upgrade
&& superset init
&& /usr/bin/run-server.sh"
nginx:
image: nginx:alpine
container_name: prefixed_superset_nginx
environment:
- "SUPERSET_CONTEXT_PATH=${SUPERSET_CONTEXT_PATH:-awesome}"
command: /bin/sh -c "envsubst '$${SUPERSET_CONTEXT_PATH}' < /etc/nginx/conf.d/superset.conf.template > /etc/nginx/conf.d/default.conf && cat /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
volumes:
- "./nginx/conf.d/superset.conf.template:/etc/nginx/conf.d/superset.conf.template"
ports:
- "80:80"
depends_on:
- superset