File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3'
2+ services :
3+ server :
4+ image : postgrest/postgrest
5+ ports :
6+ - " 3000:3000"
7+ environment :
8+ PGRST_DB_URI : postgres://test_user:123456@db:5432/blog
9+ PGRST_OPENAPI_SERVER_PROXY_URI : http://127.0.0.1:3000
10+ PGRST_DB_SCHEMA : public
11+ PGRST_DB_ANON_ROLE : web_anon
12+ PGRST_JWT_SECRET : " varmB8bXwQzn91ZLxHFJhXEy6S3cN3sB"
13+ depends_on :
14+ - db
15+ db :
16+ image : postgres
17+ ports :
18+ - " 5432:5432"
19+ environment :
20+ POSTGRES_DB : blog
21+ POSTGRES_USER : postgres
22+ POSTGRES_PASSWORD : 123456
23+ # comment this if you want to no persist the data.
24+ volumes :
25+ - " ./pgdata:/var/lib/postgresql/data"
26+ swagger :
27+ image : swaggerapi/swagger-ui
28+ ports :
29+ - " 8080:8080"
30+ expose :
31+ - " 8080"
32+ environment :
33+ API_URL : http://127.0.0.1:3000/
34+ socket :
35+ image : node:14
36+ working_dir : /app
37+ volumes :
38+ - ./socket:/app
39+ command : " npm start"
40+ ports :
41+ - " 4000:4000"
42+ depends_on :
43+ - db
44+ environment :
45+ PGHOST : db
46+ PGUSER : test_user
47+ PGPASSWORD : 123456
48+ PGDATABASE : blog
You can’t perform that action at this time.
0 commit comments