-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 820 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (42 loc) · 820 Bytes
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
version: "3.9"
services:
api:
build:
context: .
dockerfile: infra/docker/api.Dockerfile
ports:
- "8000:8000"
depends_on:
- redis
- postgres
worker:
build:
context: .
dockerfile: infra/docker/worker.Dockerfile
depends_on:
- redis
- postgres
redis:
image: redis:7
postgres:
image: postgres:15
environment:
POSTGRES_USER: gravit
POSTGRES_PASSWORD: gravit
POSTGRES_DB: gravit
node:
build:
context: .
dockerfile: infra/docker/api.Dockerfile
environment:
- GRAVIT_ETA=0.2
- GRAVIT_GAMMA=1.5
- GRAVIT_EPSILON=0.1
- GRAVIT_NODE_ID=${NODE_ID:-node-1}
ports:
- "${PORT:-8000}:8000"
networks:
- gravitnet
networks:
gravitnet:
driver: bridge