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
|
container_name: tubearchivist
|
||||||
build: ./tubearchivist/web
|
build: ./tubearchivist/web
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./volume/tubearchivist/data:/data
|
||||||
env_file:
|
env_file:
|
||||||
- ./env/tubearchivist.env
|
- ./env/tubearchivist.env
|
||||||
expose:
|
expose:
|
||||||
|
@ -14,6 +14,8 @@ services:
|
|||||||
container_name: tubearchivist
|
container_name: tubearchivist
|
||||||
build: ./tubearchivist/web
|
build: ./tubearchivist/web
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./volume/tubearchivist/data:/data
|
||||||
env_file:
|
env_file:
|
||||||
- ./env/tubearchivist.env
|
- ./env/tubearchivist.env
|
||||||
expose:
|
expose:
|
||||||
|
@ -9,9 +9,12 @@ COPY requirements.txt /requirements.txt
|
|||||||
RUN pip install --upgrade pip setuptools && \
|
RUN pip install --upgrade pip setuptools && \
|
||||||
pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
|
pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
|
||||||
|
|
||||||
|
RUN mkdir /data
|
||||||
|
|
||||||
COPY . /srv/flask_app
|
COPY . /srv/flask_app
|
||||||
WORKDIR /srv/flask_app
|
WORKDIR /srv/flask_app
|
||||||
|
|
||||||
RUN chmod +x ./start.sh
|
RUN chmod +x ./start.sh
|
||||||
|
|
||||||
|
VOLUME /data
|
||||||
CMD ["./start.sh"]
|
CMD ["./start.sh"]
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mkdir -p "/data/hooks"
|
||||||
uwsgi --ini uwsgi.ini
|
uwsgi --ini uwsgi.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user