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

fixed persistence issues of db and lock file

Former-commit-id: 02d9853749ce0e99abc194e3616a7b5fcb1d96bc [formerly 6de057f8b05c5be8c1c68c554abcae2224b6e9e3]
Former-commit-id: b95f827c20f34c017082fcd93c0bf8ff477c22fe
parent 26dbb805
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