mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-20 12:19:00 +00:00
Switch to postgres dev environment
This commit is contained in:
parent
09565537c3
commit
2cf10ce86b
3
.gitignore
vendored
3
.gitignore
vendored
@ -641,6 +641,9 @@ FodyWeavers.xsd
|
||||
# Celery
|
||||
django
|
||||
|
||||
# Postgres
|
||||
db
|
||||
|
||||
# robosats
|
||||
frontend/static/assets/avatars*
|
||||
api/lightning/lightning*
|
||||
|
@ -115,6 +115,16 @@ services:
|
||||
- /mnt/development/tor/data:/var/lib/tor:ro
|
||||
- /mnt/development/tor/config:/etc/tor:ro
|
||||
- /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:
|
||||
redisdata:
|
@ -21,3 +21,5 @@ ring==0.9.1
|
||||
robohash==1.1
|
||||
scipy==1.8.0
|
||||
gunicorn==20.1.0
|
||||
psycopg2==2.9.3
|
||||
SQLAlchemy==1.4.31
|
@ -97,11 +97,12 @@ WSGI_APPLICATION = "robosats.wsgi.application"
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": "/usr/src/database/db.sqlite3",
|
||||
"OPTIONS": {
|
||||
"timeout": 20, # in seconds
|
||||
},
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"NAME": "postgres",
|
||||
"USER": "postgres",
|
||||
"PASSWORD": "example",
|
||||
'HOST': '127.0.0.1',
|
||||
"PORT": "5432",
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user