Skip to content

Commit

Permalink
scionoftech#1: adjustment for push notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mainulhossain committed Oct 11, 2022
1 parent 21aabb1 commit d48fee4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
6 changes: 3 additions & 3 deletions FastAPISQLModel/app/conf/conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
},
"DATABASE_CONF": {
"DATABASE": "postgresql",
"POSTGRES_SERVER": "localhost",
"POSTGRES_SERVER": "fastapidb",
"POSTGRES_PORT": "5432",
"POSTGRES_USER": "",
"POSTGRES_PASSWORD": "",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "postgres",
"POSTGRES_DB": "postgres",
"POSTGRES_ADAPTER": "psycopg2"
}
Expand Down
3 changes: 2 additions & 1 deletion FastAPISQLModel/app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ async-exit-stack
async-generator
async-exit-stack
async-generator
uuid==1.30
uuid==1.30
sqlmodel
24 changes: 23 additions & 1 deletion FastAPISQLModel/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,26 @@ services:
ports:
- "8088:80"
volumes:
- "/home/user/docker_data/:/var/data"
- "/home/user/docker_data/:/var/data"
networks:
- fastapinetwork

fastapidb:
image: postgres:13.4-alpine
container_name: db
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=scidatamanager
networks:
- fastapinetwork
ports:
- 5432:5432
networks:
fastapinetwork:
driver: bridge

volumes:
postgres_data:

0 comments on commit d48fee4

Please sign in to comment.