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 ...@@ -27,6 +27,7 @@ COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./python_nedrex/ /usr/src/drugstone/python_nedrex/ COPY ./python_nedrex/ /usr/src/drugstone/python_nedrex/
RUN pip install /usr/src/drugstone/python_nedrex/ RUN pip install /usr/src/drugstone/python_nedrex/
RUN mkdir store
COPY . /usr/src/drugstone/ COPY . /usr/src/drugstone/
......
...@@ -14,6 +14,7 @@ services: ...@@ -14,6 +14,7 @@ services:
volumes: volumes:
- drugstone_db_schema_volume:/usr/src/drugstone/drugstone/migrations - drugstone_db_schema_volume:/usr/src/drugstone/drugstone/migrations
- drugstone_data_volume:/usr/src/drugstone/data - drugstone_data_volume:/usr/src/drugstone/data
- drugstone_store_volume:/usr/src/drugstone/store
ports: ports:
- 8001:8000 - 8001:8000
networks: networks:
...@@ -100,3 +101,4 @@ volumes: ...@@ -100,3 +101,4 @@ volumes:
# external: true # external: true
drugstone_data_volume: drugstone_data_volume:
# external: true # external: true
drugstone_store_volume:
\ No newline at end of file
#!/bin/bash #!/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 # 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.
Please register or to comment