-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
43 lines (39 loc) · 964 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.8"
services:
cloudflared:
image: cloudflare/cloudflared:latest
environment:
TUNNEL_URL: http://postgrest:3000
command: "tunnel --no-autoupdate"
volumes:
- ./cloudflared:/etc/cloudflared
links:
- postgrest:postgrest
depends_on:
- postgrest
postgrest:
image: postgrest/postgrest
# Expose post 3000 and access postgrest locally by uncommenting
# the `ports` directive below
# ports:
# - "3000:3000"
environment:
PGRST_DB_URI: postgres://user:password@postgres:5432/db
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: user
links:
- postgres:postgres
depends_on:
- postgres
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts:/scripts
volumes:
postgres-data: {}