-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.23 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
version: "3"
services:
postgres:
image: postgres
container_name: nplay-database
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
grafana:
image: grafana/grafana
container_name: nplay-grafana
restart: always
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
ports:
- "3000:3000"
depends_on:
- postgres
loki:
image: grafana/loki:2.9.2
container_name: nplay-loki
restart: always
ports:
- "3100:3100"
volumes:
- ./data/loki:/loki
command: -config.file=/etc/loki/local-config.yaml
bot:
build:
context: .
dockerfile: Dockerfile
image: nplay-bot
container_name: nplay-bot
restart: on-failure
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_URL: ${POSTGRES_URL}
POSTGRES_DB: ${POSTGRES_DB}
BOT_GUILD: ${BOT_GUILD}
BOT_TOKEN: ${BOT_TOKEN}
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"