-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (76 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (76 loc) · 2.06 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
version: "3.7"
services:
backend:
build:
context: .
dockerfile: backend.Containerfile
image: ghcr.io/kitten-science/kitten-analysts
container_name: kitten-analysts
ports:
# KGNet Interface
#- "7780:7780/tcp"
# Prometheus Exporter
#- "9091:9091/tcp"
# Kitten Analysts Websocket
- "9093:9093"
volumes:
- type: bind
source: ./examples
target: /tmp/local_storage
read_only: false
- type: bind
source: ./output
target: /opt/output
read_only: true
# Actual Kittens Game instance
#game:
# build:
# context: .
# dockerfile: game.Containerfile
# network_mode: service:backend
# volumes:
# - type: bind
# source: ./output
# target: /kittensgame/kitten-analysts
# read_only: true
# - type: bind
# source: ./node_modules/@kitten-science/kitten-scientists/output
# target: /kittensgame/kitten-scientists
# read_only: true
prometheus:
image: docker.io/prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
restart: unless-stopped
volumes:
- ./contrib/prometheus.yml:/etc/prometheus/prometheus.yml
- prom_data:/prometheus
grafana:
image: docker.io/grafana/grafana
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./contrib/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./contrib/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
- ./contrib/grafana-dashboard.json:/var/lib/grafana/dashboards/kittensgame.json
# Headless container
#ui:
# build:
# context: .
# dockerfile: ui.Containerfile
# network_mode: service:backend
# volumes:
# - type: bind
# source: ./examples
# target: /tmp/local_storage
# read_only: false
volumes:
prom_data: