mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 16:53:16 +00:00
Switch to postgres dev environment
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -641,6 +641,9 @@ FodyWeavers.xsd
|
|||||||
# Celery
|
# Celery
|
||||||
django
|
django
|
||||||
|
|
||||||
|
# Postgres
|
||||||
|
db
|
||||||
|
|
||||||
# robosats
|
# robosats
|
||||||
frontend/static/assets/avatars*
|
frontend/static/assets/avatars*
|
||||||
api/lightning/lightning*
|
api/lightning/lightning*
|
||||||
|
@ -116,5 +116,15 @@ services:
|
|||||||
- /mnt/development/tor/config:/etc/tor:ro
|
- /mnt/development/tor/config:/etc/tor:ro
|
||||||
- /mnt/development/bitcoin:/home/bitcoin/.bitcoin
|
- /mnt/development/bitcoin:/home/bitcoin/.bitcoin
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:14.2-alpine
|
||||||
|
container_name: sql-dev
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: example
|
||||||
|
network_mode: service:tor
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/postgresql/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
redisdata:
|
redisdata:
|
@ -21,3 +21,5 @@ ring==0.9.1
|
|||||||
robohash==1.1
|
robohash==1.1
|
||||||
scipy==1.8.0
|
scipy==1.8.0
|
||||||
gunicorn==20.1.0
|
gunicorn==20.1.0
|
||||||
|
psycopg2==2.9.3
|
||||||
|
SQLAlchemy==1.4.31
|
@ -97,11 +97,12 @@ WSGI_APPLICATION = "robosats.wsgi.application"
|
|||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": {
|
"default": {
|
||||||
"ENGINE": "django.db.backends.sqlite3",
|
"ENGINE": "django.db.backends.postgresql",
|
||||||
"NAME": "/usr/src/database/db.sqlite3",
|
"NAME": "postgres",
|
||||||
"OPTIONS": {
|
"USER": "postgres",
|
||||||
"timeout": 20, # in seconds
|
"PASSWORD": "example",
|
||||||
},
|
'HOST': '127.0.0.1',
|
||||||
|
"PORT": "5432",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user