Skip to content

Commit d48fee4

Browse files
committed
scionoftech#1: adjustment for push notification
1 parent 21aabb1 commit d48fee4

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

FastAPISQLModel/app/conf/conf.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
},
2222
"DATABASE_CONF": {
2323
"DATABASE": "postgresql",
24-
"POSTGRES_SERVER": "localhost",
24+
"POSTGRES_SERVER": "fastapidb",
2525
"POSTGRES_PORT": "5432",
26-
"POSTGRES_USER": "",
27-
"POSTGRES_PASSWORD": "",
26+
"POSTGRES_USER": "postgres",
27+
"POSTGRES_PASSWORD": "postgres",
2828
"POSTGRES_DB": "postgres",
2929
"POSTGRES_ADAPTER": "psycopg2"
3030
}

FastAPISQLModel/app/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ async-exit-stack
1111
async-generator
1212
async-exit-stack
1313
async-generator
14-
uuid==1.30
14+
uuid==1.30
15+
sqlmodel

FastAPISQLModel/docker-compose.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,26 @@ services:
77
ports:
88
- "8088:80"
99
volumes:
10-
- "/home/user/docker_data/:/var/data"
10+
- "/home/user/docker_data/:/var/data"
11+
networks:
12+
- fastapinetwork
13+
14+
fastapidb:
15+
image: postgres:13.4-alpine
16+
container_name: db
17+
volumes:
18+
- postgres_data:/var/lib/postgresql/data/
19+
environment:
20+
- POSTGRES_USER=postgres
21+
- POSTGRES_PASSWORD=postgres
22+
# - POSTGRES_DB=scidatamanager
23+
networks:
24+
- fastapinetwork
25+
ports:
26+
- 5432:5432
27+
networks:
28+
fastapinetwork:
29+
driver: bridge
30+
31+
volumes:
32+
postgres_data:

0 commit comments

Comments
 (0)