-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
224 lines (207 loc) · 4.61 KB
/
docker-compose.dev.yml
File metadata and controls
224 lines (207 loc) · 4.61 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
services:
landing:
image: node:20-alpine
working_dir: /app
ports:
- "8174:8174"
volumes:
- ./landing:/app
- landing_node_modules:/app/node_modules
environment:
- APP_URL=http://app.ethernal.local:8180
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 8174"
networks:
- ethernal-network
blog:
image: node:20-alpine
working_dir: /app
ports:
- "8176:8176"
volumes:
- ./blog:/app
- blog_node_modules:/app/node_modules
environment:
- PUBLIC_APP_URL=http://app.ethernal.local:8180
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 8176"
networks:
- ethernal-network
caddy:
image: caddy:2.7.6-alpine
ports:
- "8180:8180"
volumes:
- ./Caddyfile.dev:/etc/caddy/Caddyfile
depends_on:
- landing
- blog
networks:
- ethernal-network
sentry-dashboard:
image: node:20-alpine
working_dir: /app
ports:
- "8175:8175"
volumes:
- ./sentry-dashboard:/app
- sentry_dashboard_node_modules:/app/node_modules
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 8175"
networks:
- ethernal-network
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
target: dev
ports:
- "8080:8080"
volumes:
- ./src:/app/src
- ./public:/app/public
- ./.env:/app/.env
environment:
- VITE_API_PROXY_TARGET=http://host.docker.internal:8888
command: yarn serve
networks:
- ethernal-network
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "8888:8888"
volumes:
- ./run:/app
- ./run/.env:/app/.env
command: npm run start
env_file: ./run/.env
depends_on:
- postgres
- redis
networks:
- ethernal-network
high_priority_worker:
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- ./run:/app
- ./run/.env:/app/.env
command: npm run worker:high
env_file: ./run/.env
depends_on:
- postgres
- redis
networks:
- ethernal-network
medium_priority_worker:
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- ./run:/app
- ./run/.env:/app/.env
command: npm run worker:medium
env_file: ./run/.env
depends_on:
- postgres
- redis
networks:
- ethernal-network
low_priority_worker:
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- ./run:/app
- ./run/.env:/app/.env
command: npm run worker:low
env_file: ./run/.env
depends_on:
- postgres
- redis
networks:
- ethernal-network
postgres:
image: timescale/timescaledb:2.11.1-pg14
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ethernal
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "8432:5432"
networks:
- ethernal-network
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "8379:6379"
networks:
- ethernal-network
soketi:
image: quay.io/soketi/soketi:1.6.1-16-debian
ports:
- "8001:6001"
env_file: ./run/.env
networks:
- ethernal-network
stripe-cli:
image: stripe/stripe-cli
command: listen --forward-to http://backend:8888/webhooks/stripe
env_file: .env.stripe
networks:
- ethernal-network
pm2:
build:
context: .
dockerfile: Dockerfile.pm2
target: dev
volumes:
- ./pm2-server:/app
env_file: ./pm2-server/.env
depends_on:
- backend
networks:
- ethernal-network
pgbouncer:
image: edoburu/pgbouncer
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- AUTH_TYPE=scram-sha-256
- POOL_MODE=transaction
- ADMIN_USERS=postgres,admin
- MAX_CLIENT_CONN=1000
ports:
- "8433:5432"
depends_on:
- postgres
networks:
- ethernal-network
admin:
image: node:20-alpine
working_dir: /app
ports:
- "8177:8177"
volumes:
- ./admin:/app
- admin_node_modules:/app/node_modules
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 8177"
networks:
- ethernal-network
networks:
ethernal-network:
driver: bridge
volumes:
postgres_data:
redis_data:
landing_node_modules:
blog_node_modules:
sentry_dashboard_node_modules:
admin_node_modules: