-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
156 lines (144 loc) · 4.08 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
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
version: '3'
services:
db:
image: postgres:17.0-alpine3.20
restart: always
container_name: db
volumes:
- ./postgres:/docker-entrypoint-initdb.d/
- database_volume:/var/lib/postgresql/data
environment:
- "POSTGRES_MULTIPLE_DATABASES=rms_users,rms_users: rms_media_discovery,rms_media_discovery: rms_bot_server,rms_bot_server"
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=qweasd123
etcd:
image: bitnami/etcd:3.5.16
container_name: etcd
restart: always
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
ports:
- "127.0.0.1:2379:2379"
- "127.0.0.1:2380:2380"
media-discovery:
image: racoonmediaserver/media-discovery:latest
restart: always
container_name: media-discovery
environment:
- RMS_DEBUG_VERBOSE=true
- RMS_DATABASE_HOST=db
- RMS_DATABASE_DATABASE=rms_media_discovery
- RMS_DATABASE_USER=postgres
- RMS_DATABASE_PASSWORD=qweasd123
- RMS_HTTP_HOST=0.0.0.0
- RMS_DEBUG_MONITOR_HOST=0.0.0.0
- MICRO_REGISTRY=etcd
- MICRO_REGISTRY_ADDRESS=etcd:2379
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- db
- users
users:
image: racoonmediaserver/users:latest
restart: always
container_name: users
environment:
- RMS_DATABASE_HOST=db
- RMS_DATABASE_DATABASE=rms_users
- RMS_DATABASE_USER=postgres
- RMS_DATABASE_PASSWORD=qweasd123
- RMS_HTTP_HOST=0.0.0.0
- RMS_MONITOR_HOST=0.0.0.0
- RMS_SECURITY_KEY=${PRIVATE_KEY}
- RMS_SECURITY_REGISTRATION_ENABLED=true
- MICRO_REGISTRY=etcd
- MICRO_REGISTRY_ADDRESS=etcd:2379
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- db
bot:
image: racoonmediaserver/bot-server:latest
restart: always
container_name: bot
environment:
- RMS_DATABASE_HOST=db
- RMS_DATABASE_DATABASE=rms_bot_server
- RMS_DATABASE_USER=postgres
- RMS_DATABASE_PASSWORD=qweasd123
- RMS_BOTS_PUBLIC_TOKEN=${TELEGRAM_PUBLIC_BOT_TOKEN}
- RMS_BOTS_PRIVATE_TOKEN=${TELEGRAM_PRIVATE_BOT_TOKEN}
- RMS_HTTP_HOST=0.0.0.0
- RMS_MONITOR_HOST=0.0.0.0
- MICRO_REGISTRY=etcd
- MICRO_REGISTRY_ADDRESS=etcd:2379
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- db
- users
post:
image: racoonmediaserver/post:latest
restart: always
container_name: post
environment:
- RMS_HTTP_HOST=0.0.0.0
- RMS_MONITOR_HOST=0.0.0.0
- RMS_DELIVERY_SMS_ACCOUNT=
- RMS_DELIVERY_SMS_KEY=
- RMS_DELIVERY_EMAIL_USER=
- RMS_DELIVERY_EMAIL_PASSWORD=
- MICRO_REGISTRY=etcd
- MICRO_REGISTRY_ADDRESS=etcd:2379
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- users
mirror:
image: racoonmediaserver/mirror:latest
restart: always
container_name: mirror
environment:
- RMS_HTTP_HOST=0.0.0.0
- MICRO_REGISTRY=etcd
- MICRO_REGISTRY_ADDRESS=etcd:2379
labels:
- "com.centurylinklabs.watchtower.enable=true"
nginx:
image: nginx:1.27.2-alpine
container_name: nginx
restart: always
volumes:
- ./nginx/reverse-proxy.conf:/etc/nginx/conf.d/default.conf
ports:
- 127.0.0.1:8080:80
depends_on:
- media-discovery
- users
- bot
- post
prometheus:
image: prom/prometheus:v2.54.1
ports:
- "127.0.0.1:9000:9090"
volumes:
- ./prometheus:/etc/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:11.2.2
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml
ports:
- "3000:3000"
links:
- prometheus
watchtower:
image: containrrr/watchtower:1.7.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --label-enable
volumes:
database_volume: