change db storage

master
lza_menace 2 years ago
parent cbdcff8b7f
commit 3b01dfc051

@ -1,5 +1,5 @@
docker-monero-node docker-monero-node
lws-web lwsadmin
monero-lws monero-lws
.env .env
.git .git
@ -7,4 +7,6 @@ monero-lws
docker-compose.yaml docker-compose.yaml
env.example env.example
Makefile Makefile
README.md README.md
.venv
*.db

@ -3,7 +3,7 @@ from datetime import datetime
from peewee import * from peewee import *
db = SqliteDatabase('lws.db') db = SqliteDatabase('data/lws.db')
class User(Model): class User(Model):

@ -24,7 +24,7 @@ services:
DEBUG: 0 DEBUG: 0
network_mode: host network_mode: host
volumes: volumes:
- lwsadmin:/srv/lwsadmin - lwsadmin:/srv/lwsadmin/data
user: "1000:1000" user: "1000:1000"
command: command:
./.venv/bin/poetry run start ./.venv/bin/poetry run start

@ -27,7 +27,7 @@ services:
ports: ports:
- 127.0.0.1:5000:5000 - 127.0.0.1:5000:5000
volumes: volumes:
- lwsadmin:/srv/lwsadmin - lwsadmin:/srv/lwsadmin/data
user: "1000:1000" user: "1000:1000"
command: command:
./.venv/bin/poetry run start ./.venv/bin/poetry run start

Loading…
Cancel
Save