Skip to content
Snippets Groups Projects
Commit f8e7753c authored by AndiMajore's avatar AndiMajore
Browse files

fixed persistence issues of db and lock file

Former-commit-id: 002d409b
parent 3a1b589c
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./python_nedrex/ /usr/src/drugstone/python_nedrex/
RUN pip install /usr/src/drugstone/python_nedrex/
RUN mkdir store
COPY . /usr/src/drugstone/
......
......@@ -14,6 +14,7 @@ services:
volumes:
- drugstone_db_schema_volume:/usr/src/drugstone/drugstone/migrations
- drugstone_data_volume:/usr/src/drugstone/data
- drugstone_store_volume:/usr/src/drugstone/store
ports:
- 8001:8000
networks:
......@@ -99,4 +100,5 @@ volumes:
drugstone_db_schema_volume:
# external: true
drugstone_data_volume:
# external: true
\ No newline at end of file
# external: true
drugstone_store_volume:
\ No newline at end of file
#!/bin/bash
file="data/docker-entrypoint.lock"
file="store/docker-entrypoint.lock"
# exit if entrypoint.lock exists to prevent new import of data every time docker is restarted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment