-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
77 lines (64 loc) · 1.44 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.7"
services:
redis:
image: redis:6-alpine
container_name: redis
ports:
- "6379:6379"
networks:
- backend
cube:
container_name: cube
image: cubejs/cube
ports:
- 4000:4000
- 15432:15432
env_file: ./packages/cube/.env
volumes:
- ./packages/cube:/cube/conf
networks:
- backend
db:
image: postgres:15.3
command: [ "postgres", "-c", "log_statement=all" ]
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- backend
web:
container_name: web
build:
dockerfile: Dockerfile.web
ports:
- 3000:3000
networks:
- backend
db-api:
image: postgrest/postgrest:v11.1.0
container_name: db-api
ports:
- '127.0.0.1:8080:8080'
- '127.0.0.1:8081:8081'
environment:
PGRST_SERVER_PORT: 8080
PGRST_ADMIN_SERVER_PORT: 8081
PGRST_DB_URI: postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@db/${DATABASE_NAME}
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: postgres
PGRST_JWT_SECRET: ${AUTH_JWT_SECRET}
PGRST_OPENAPI_SERVER_PROXY_URI: http://127.0.0.1:8080
depends_on:
- db
networks:
- backend
networks:
backend:
volumes:
postgres-data: