{"action":"created","issue":{"url":"https://api.github.com/repos/overshard/timestrap/issues/150","repository_url":"https://api.github.com/repos/overshard/timestrap","labels_url":"https://api.github.com/repos/overshard/timestrap/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/overshard/timestrap/issues/150/comments","events_url":"https://api.github.com/repos/overshard/timestrap/issues/150/events","html_url":"https://github.com/overshard/timestrap/issues/150","id":321137971,"number":150,"title":"Persist data","user":{"login":"enric1994","id":17545224,"avatar_url":"https://avatars2.githubusercontent.com/u/17545224?v=4","gravatar_id":"","url":"https://api.github.com/users/enric1994","html_url":"https://github.com/enric1994","followers_url":"https://api.github.com/users/enric1994/followers","following_url":"https://api.github.com/users/enric1994/following{/other_user}","gists_url":"https://api.github.com/users/enric1994/gists{/gist_id}","starred_url":"https://api.github.com/users/enric1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enric1994/subscriptions","organizations_url":"https://api.github.com/users/enric1994/orgs","repos_url":"https://api.github.com/users/enric1994/repos","events_url":"https://api.github.com/users/enric1994/events{/privacy}","received_events_url":"https://api.github.com/users/enric1994/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T10:55:39Z","updated_at":"2018-05-08T18:42:12Z","closed_at":null,"author_association":"NONE","body":"I would like to persist my data when I do docker-compose down -v\r\n**Which module should I mount in my host?**\r\nHere's my actual docker-compose.yml\r\n```\r\nversion: '2'\r\n\r\nservices:\r\n\r\n#Timestrap\r\n  timestrap:\r\n    image: stianovrevage/timestrap:latest\r\n    volumes:\r\n      - ./timestrap-database/:/timestrap/database/\r\n    ports:\r\n      - 8000:8000\r\n    restart: always\r\n```\r\n\r\nTy"},"comment":{"url":"https://api.github.com/repos/overshard/timestrap/issues/comments/387502102","html_url":"https://github.com/overshard/timestrap/issues/150#issuecomment-387502102","issue_url":"https://api.github.com/repos/overshard/timestrap/issues/150","id":387502102,"user":{"login":"overshard","id":7016,"avatar_url":"https://avatars1.githubusercontent.com/u/7016?v=4","gravatar_id":"","url":"https://api.github.com/users/overshard","html_url":"https://github.com/overshard","followers_url":"https://api.github.com/users/overshard/followers","following_url":"https://api.github.com/users/overshard/following{/other_user}","gists_url":"https://api.github.com/users/overshard/gists{/gist_id}","starred_url":"https://api.github.com/users/overshard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overshard/subscriptions","organizations_url":"https://api.github.com/users/overshard/orgs","repos_url":"https://api.github.com/users/overshard/repos","events_url":"https://api.github.com/users/overshard/events{/privacy}","received_events_url":"https://api.github.com/users/overshard/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T18:42:12Z","updated_at":"2018-05-08T18:42:12Z","author_association":"OWNER","body":"The database portion is handled by the official postgres docker container: https://hub.docker.com/_/postgres/\r\n\r\nI'm not 100% sure how to persist the data honestly. It looks like what you can do is set a volume and then use the PGDATA variable to put the database files into that volume. Their documentation may cover this. Once we figure this out I'd like to include information on this in the readme as it's probably a concern for many."}}
{"actor":{"display_login":"overshard"}}