This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.88 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
version: '3.9'
services:
postgres:
image: postgres:16.1
container_name: poketrade-postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
centrifugo:
container_name: poketrade-centrifugo
image: centrifugo/centrifugo:v5.2.0
environment:
CENTRIFUGO_PORT: ${CENTRIFUGO_PORT}
CENTRIFUGO_ALLOWED_ORIGINS: ${CENTRIFUGO_ALLOWED_ORIGINS}
CENTRIFUGO_API_KEY: ${CENTRIFUGO_API_KEY}
CENTRIFUGO_TOKEN_HMAC_SECRET_KEY: ${CENTRIFUGO_TOKEN_HMAC_SECRET_KEY}
CENTRIFUGO_NAMESPACES: "[{\"name\": \"personal\"}]"
CENTRIFUGO_ADMIN: "true"
CENTRIFUGO_ADMIN_SECRET: ${CENTRIFUGO_ADMIN_SECRET}
CENTRIFUGO_ADMIN_PASSWORD: ${CENTRIFUGO_ADMIN_PASSWORD}
ulimits:
nofile:
soft: 65535
hard: 65535
ports:
- ${CENTRIFUGO_PORT}:${CENTRIFUGO_PORT}
app:
build: ./
container_name: poketrade-app
environment:
HOST: app
PORT: ${PORT}
POSTGRES_HOST: postgres
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
JWT_ACCESS_SECRET: ${JWT_ACCESS_SECRET}
JWT_ACCESS_EXPIRES_IN: ${JWT_ACCESS_EXPIRES_IN}
JWT_REFRESH_SECRET: ${JWT_REFRESH_SECRET}
JWT_REFRESH_EXPIRES_IN: ${JWT_REFRESH_EXPIRES_IN}
CENTRIFUGO_API_URL: http://centrifugo:${CENTRIFUGO_PORT}/api
CENTRIFUGO_API_KEY: ${CENTRIFUGO_API_KEY}
CENTRIFUGO_TOKEN_HMAC_SECRET_KEY: ${CENTRIFUGO_TOKEN_HMAC_SECRET_KEY}
CENTRIFUGO_CONNECTION_TOKEN_EXPIRES_IN: ${CENTRIFUGO_CONNECTION_TOKEN_EXPIRES_IN}
CENTRIFUGO_SUBSCRIPTION_TOKEN_EXPIRES_IN: ${CENTRIFUGO_SUBSCRIPTION_TOKEN_EXPIRES_IN}
depends_on:
- postgres
- centrifugo
links:
- postgres
- centrifugo
ports:
- ${PORT}:${PORT}