mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-21 19:30:12 +00:00
add data volume to ta container
This commit is contained in:
parent
4c4ff0845b
commit
f38d8a3594
@ -47,6 +47,8 @@ services:
|
||||
container_name: tubearchivist
|
||||
build: ./tubearchivist/web
|
||||
restart: always
|
||||
volumes:
|
||||
- ./volume/tubearchivist/data:/data
|
||||
env_file:
|
||||
- ./env/tubearchivist.env
|
||||
expose:
|
||||
|
@ -14,6 +14,8 @@ services:
|
||||
container_name: tubearchivist
|
||||
build: ./tubearchivist/web
|
||||
restart: always
|
||||
volumes:
|
||||
- ./volume/tubearchivist/data:/data
|
||||
env_file:
|
||||
- ./env/tubearchivist.env
|
||||
expose:
|
||||
|
@ -9,9 +9,12 @@ COPY requirements.txt /requirements.txt
|
||||
RUN pip install --upgrade pip setuptools && \
|
||||
pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
|
||||
|
||||
RUN mkdir /data
|
||||
|
||||
COPY . /srv/flask_app
|
||||
WORKDIR /srv/flask_app
|
||||
|
||||
RUN chmod +x ./start.sh
|
||||
|
||||
VOLUME /data
|
||||
CMD ["./start.sh"]
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p "/data/hooks"
|
||||
uwsgi --ini uwsgi.ini
|
||||
|
Loading…
Reference in New Issue
Block a user