Skip to content

Commit

Permalink
Split data and config volumes
Browse files Browse the repository at this point in the history
/etc/superset is for config
/var/lib/superset is for data
  • Loading branch information
Alexander Mancevice committed Jan 15, 2018
1 parent 6c9c2ed commit ec34b92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONPATH=/etc/superset:$PYTHONPATH \
SUPERSET_VERSION=${SUPERSET_VERSION} \
SUPERSET_HOME=/home/superset
SUPERSET_HOME=/var/lib/superset

# Create superset user & install dependencies
RUN useradd -U -m superset && \
Expand Down Expand Up @@ -45,7 +45,8 @@ RUN useradd -U -m superset && \

# Configure Filesystem
COPY superset /usr/local/bin
VOLUME /etc/superset
VOLUME /etc/superset \
/var/lib/superset
WORKDIR /home/superset

# Deploy application
Expand Down

0 comments on commit ec34b92

Please sign in to comment.