-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
130 lines (120 loc) · 3.18 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
130 lines (120 loc) · 3.18 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
services:
nginx:
restart: always
image: trunkplayer/trunkplayer-ng-nginx:main
# build: nginx/
# user: 1000:1000
ports:
- 8080:80
- 8443:443
depends_on:
- gunicorn
volumes:
- static:/code/static
- ${MEDIA_VOLUME_PATH}:/code/mediafiles
emqx:
image: emqx/emqx:latest
ports:
- "1883:1883"
- "18083:18083"
environment:
- EMQX_LISTENER__TCP__EXTERNAL=1883
- EMQX_LISTENER__WS__EXTERNAL=8083
- EMQX_DASHBOARD__LISTENER__HTTP=18083
restart: always
trunk-player-frontend:
restart: always
image: trunkplayer/trunkplayer-ng-frontend:latest
# build: ../Trunk-PlayerNG-Frontend/
environment:
NEXT_PUBLIC_BASEAPIURL: "${NEXT_PUBLIC_BASEAPIURL}"
NEXT_PUBLIC_RECOMMENDEDBASEAPIURL: "${NEXT_PUBLIC_RECOMMENDEDBASEAPIURL}"
gunicorn:
restart: always
image: trunkplayer/trunkplayer-ng-api:main
build: .
user: 1000:1000
command: chaosctl web --init
env_file:
- .env
environment:
DB_HOST: "database"
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672"
volumes:
- static:/opt/chaos.corp/tpng/static
- ${MEDIA_VOLUME_PATH}:/opt/chaos.corp/tpng/mediafiles
depends_on:
- database
- rabbitmq
trunk-player-worker:
restart: always
image: trunkplayer/trunkplayer-ng-api:main
build: .
user: 1000:1000
deploy:
replicas: ${WORKER_REPLICAS}
command: chaosctl worker
env_file:
- .env
environment:
DB_HOST: "database"
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672"
volumes:
- static:/opt/chaos.corp/tpng/static
- ${MEDIA_VOLUME_PATH}:/opt/chaos.corp/tpng/mediafiles
depends_on:
- database
- rabbitmq
trunk-player-beat:
restart: always
image: trunkplayer/trunkplayer-ng-api:main
build: .
user: 1000:1000
command: chaosctl beat
env_file:
- .env
environment:
DB_HOST: "database"
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672"
volumes:
- static:/opt/chaos.corp/tpng/static
- ${MEDIA_VOLUME_PATH}:/opt/chaos.corp/tpng/mediafiles
depends_on:
- database
- rabbitmq
trunk-player-mqtt:
restart: always
image: trunkplayer/trunkplayer-ng-api:main
build: .
user: 1000:1000
deploy:
replicas: 0
command: chaosctl mqtt
env_file:
- .env
environment:
DB_HOST: "database"
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672"
depends_on:
- database
- rabbitmq
- emqx
database:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: "${DB_PASS}"
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
volumes:
- ${DATABASE_VOLUME_PATH}:/var/lib/postgresql/data
rabbitmq:
image: 'rabbitmq:management'
restart: always
ports:
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
volumes:
static: