mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-16 18:57:48 +00:00
42 lines
902 B
YAML
42 lines
902 B
YAML
version: '3.9'
|
|
services:
|
|
db:
|
|
image: xbgmsharp/timescaledb-postgis
|
|
container_name: db
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
- POSTGRES_DB=postgres
|
|
- TIMESCALEDB_TELEMETRY=off
|
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- data:/var/lib/postgresql/data
|
|
- $PWD/initdb:/docker-entrypoint-initdb.d
|
|
logging:
|
|
options:
|
|
max-size: 10m
|
|
|
|
api:
|
|
image: postgrest/postgrest
|
|
container_name: api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
env_file: .env
|
|
environment:
|
|
PGRST_DB_SCHEMA: api
|
|
PGRST_DB_ANON_ROLE: api_anonymous
|
|
PGRST_OPENAPI_SERVER_PROXY_URI: http://127.0.0.1:3000
|
|
PGRST_DB_PRE_REQUEST: public.check_jwt
|
|
network_mode: "host"
|
|
depends_on:
|
|
- db
|
|
logging:
|
|
options:
|
|
max-size: 10m
|
|
|
|
volumes:
|
|
data: {}
|