-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 986 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
version: "3.3"
services:
postgres:
image: postgres:15.2
env_file:
- .env
environment:
POSTGRES_USER: ${DB_SUPER_USER}
POSTGRES_PASSWORD: ${DB_SUPER_USER_PASS}
POSTGRES_DB: backend_main
volumes:
- owlduty-pg-data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d
ports:
- 5432:5432
postgrest:
image: postgrest/postgrest:v11.0.1
depends_on:
- postgres
environment:
PGRST_DB_URI: postgres://${DB_SUPER_USER}:${DB_SUPER_USER_PASS}@postgres:5432/backend_main
PGRST_DB_ANON_ROLE: ${DB_ANON_ROLE}
PGRST_DB_SCHEMAS: ${DB_PUBLIC_SCHEMAS}
PGRST_JWT_SECRET: ${JWT_SECRET}
PGRST_JWT_SECRET_IS_BASE64: ${JWT_SECRET_IS_BASE64}
PGRST_OPENAPI_SERVER_PROXY_URI: ${API_BASE_URL}
ports:
- 33000:3000
swagger-ui:
image: swaggerapi/swagger-ui:v5.1.0
environment:
API_URL: ${API_BASE_URL}
ports:
- 80:8080
volumes:
owlduty-pg-data: