Skip to content

Commit 311df73

Browse files
committed
added non-nginx-ssl compose version
1 parent c90c6cf commit 311df73

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

docker-compose-non-ngninx.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)