inthf commited on
Commit
ea57d8d
·
verified ·
1 Parent(s): 7af22c3
Files changed (1) hide show
  1. Dockerfile +43 -0
Dockerfile ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: "3.8"
2
+
3
+ services:
4
+ cloudflared:
5
+ image: cloudflare/cloudflared:latest
6
+ environment:
7
+ TUNNEL_URL: http://postgrest:3000
8
+ command: "tunnel --no-autoupdate"
9
+ volumes:
10
+ - ./cloudflared:/etc/cloudflared
11
+ links:
12
+ - postgrest:postgrest
13
+ depends_on:
14
+ - postgrest
15
+
16
+ postgrest:
17
+ image: postgrest/postgrest
18
+ # Expose post 3000 and access postgrest locally by uncommenting
19
+ # the `ports` directive below
20
+ # ports:
21
+ # - "3000:3000"
22
+ environment:
23
+ PGRST_DB_URI: postgres://user:password@postgres:5432/db
24
+ PGRST_DB_SCHEMA: public
25
+ PGRST_DB_ANON_ROLE: user
26
+ links:
27
+ - postgres:postgres
28
+ depends_on:
29
+ - postgres
30
+
31
+ postgres:
32
+ image: postgres
33
+ restart: always
34
+ environment:
35
+ POSTGRES_DB: db
36
+ POSTGRES_USER: user
37
+ POSTGRES_PASSWORD: password
38
+ volumes:
39
+ - postgres-data:/var/lib/postgresql/data
40
+ - ./scripts:/scripts
41
+
42
+ volumes:
43
+ postgres-data: {}