-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
100 lines (91 loc) · 1.9 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
version: '3.1'
volumes:
prometheus_data: {}
grafana_data: {}
pgdata:
external: true
networks:
backend-services:
services:
postgres:
image: library/postgres
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
environment:
LC_ALL: C.UTF-8
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: docker
networks:
- backend-services
redis:
image: redis:latest
networks:
- backend-services
volumes:
- ./redis/:/etc/redis/
command:
- '/etc/redis/redis.conf'
prometheus:
image: prom/prometheus:v2.5.0
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.external-url=https://blep.me/prometheus'
ports:
- 9090:9090
restart: always
networks:
- backend-services
public-api:
build:
context: .
dockerfile: ./public-api.Dockerfile
depends_on:
- postgres
- session
ports:
- 8082:8082
restart: always
networks:
- backend-services
game:
build:
context: .
dockerfile: ./game.Dockerfile
depends_on:
- public-api
ports:
- 8083:8083
restart: always
networks:
- backend-services
session:
build:
context: .
dockerfile: ./session.Dockerfile
depends_on:
- redis
networks:
- backend-services
restart: always
grafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./grafana/:/etc/grafana
- grafana_data:/var/lib/grafana
command:
- '--config=/etc/grafana/custom.ini'
restart: always
networks:
- backend-services