-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (80 loc) · 1.68 KB
/
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
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
78
79
80
services:
db:
restart: always
image: postgres:15
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- DB_READ_USER
healthcheck:
test: "pg_isready -d ${DB_NAME} -U ${DB_USER}"
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
ports:
- "${DB_PORT}:5432"
volumes:
- db:/var/lib/postgresql/data
# command: ["postgres", "-c", "log_statement=all"]
processor:
build:
context: .
dockerfile: docker/processor.Dockerfile
restart: unless-stopped
environment:
- FORCE_PRETTY_LOGGER
- RPC_ENDPOINT
- DB_HOST
- DB_PORT=5432
- DB_NAME
- DB_USER
- DB_PASS
- DB_READ_USER
- DB_READ_PASS
- ENABLE_OBJEKTS
- ENABLE_GRAVITY
command: ["sqd", "process:prod"]
depends_on:
- db
drizzle-proxy:
build:
context: .
dockerfile: docker/drizzle-proxy.Dockerfile
restart: always
environment:
- DB_HOST
- DB_PORT=5432
- DB_NAME
- DB_USER
- DB_PASS
- DB_READ_USER
- DB_READ_PASS
- PROXY_HTTP_PORT
- PROXY_KEY
- PROXY_CACHE_MAX_AGE
ports:
- "${PROXY_HTTP_PORT}:${PROXY_HTTP_PORT}"
depends_on:
- db
gravity-api:
build:
context: .
dockerfile: docker/gravity-api.Dockerfile
restart: always
environment:
- DB_HOST
- DB_PORT=5432
- DB_NAME
- DB_READ_USER
- DB_READ_PASS
- GRAVITY_HTTP_PORT
- GRAVITY_CORS
ports:
- "${GRAVITY_HTTP_PORT}:${GRAVITY_HTTP_PORT}"
depends_on:
- db
volumes:
db:
driver: local