-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
141 lines (131 loc) · 3.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
141 lines (131 loc) · 3.07 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
services:
redis-stack:
image: redis/redis-stack:latest
command: ["redis-server", "--replicaof", "no", "one", "--protected-mode", "no"]
ports:
- "6379:6379"
- "8001:8001"
restart: unless-stopped
env_file:
- .env.prod
postgres:
image: postgres:latest
ports:
- "5441:5432"
restart: unless-stopped
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env.prod
server:
build:
context: .
dockerfile: apps/server/Dockerfile
ports:
- "8080:8080"
depends_on:
- redis-stack
- postgres
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
- DATABASE_URL=postgresql://user:password@postgres:5432/postgres?schema=public
env_file:
- .env.prod
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- "3000:3000"
depends_on:
- server
environment:
- NEXT_PUBLIC_API_URL=http://64.227.155.9:8080
- REDIS_URL=redis://redis-stack:6379
- DATABASE_URL=postgresql://user:password@postgres:5432/postgres?schema=public
env_file:
- .env.prod
queue:
build:
context: .
dockerfile: packages/queue/Dockerfile
depends_on:
- redis-stack
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
env_file:
- .env.prod
archiver:
build:
context: .
dockerfile: services/archiver/Dockerfile
depends_on:
- redis-stack
- postgres
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
- DATABASE_URL=postgresql://user:password@postgres:5432/postgres?schema=public
env_file:
- .env.prod
wss:
build:
context: .
dockerfile: services/wss/Dockerfile
ports:
- "8081:8081"
depends_on:
- redis-stack
environment:
- REDIS_URL=redis://redis-stack:6379
- WSS_PORT=8081
- NEXT_PUBLIC_WSS_URL=ws://localhost:8081
env_file:
- .env.prod
oracle:
build:
context: .
dockerfile: services/oracle/Dockerfile
depends_on:
- redis-stack
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
env_file:
- .env.prod
funding-schedular:
build:
context: .
dockerfile: services/funding-schedular/Dockerfile
depends_on:
- redis-stack
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
env_file:
- .env.prod
position-liquidator:
build:
context: .
dockerfile: services/position-liquidator/Dockerfile
depends_on:
- redis-stack
environment:
- REDIS_HOST=redis-stack
- REDIS_PORT=6379
- REDIS_URL=redis://redis-stack:6379
env_file:
- .env.prod
volumes:
postgres_data: