mirror of
https://github.com/gramps-project/gramps-web.git
synced 2026-01-06 05:40:09 -06:00
Fix compose-based development setup
This commit is contained in:
@@ -7,11 +7,9 @@ COPY config.cfg /app/config/
|
||||
ENV GRAMPS_RESOURCES /usr/share/
|
||||
RUN cp -r /usr/share/doc/gramps/example/gramps/example.gramps.gz .
|
||||
RUN gunzip example.gramps.gz
|
||||
RUN gramps -C Example -i example.gramps --config=database.backend:sqlite --config=database.path:/app/.gramps/grampsdb
|
||||
RUN gramps -C Example -i example.gramps --config=database.backend:sqlite --config=database.path:/root/.gramps/grampsdb
|
||||
RUN rm -rf appcache
|
||||
|
||||
ENV HOME /app
|
||||
|
||||
# build full-text search index
|
||||
RUN python3 -m gramps_webapi --config /app/config/config.cfg search index-full
|
||||
|
||||
|
||||
@@ -17,9 +17,6 @@ services:
|
||||
build:
|
||||
context: ./dev
|
||||
dockerfile: Dockerfile.api
|
||||
volumes:
|
||||
- gramps_users:/app/users # persist user database
|
||||
- gramps_db:/root/.gramps/grampsdb # persist Gramps database
|
||||
gramps-frontend:
|
||||
container_name: gramps-frontend-dev
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user