-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathdocker-compose.yaml
executable file
·77 lines (70 loc) · 1.51 KB
/
docker-compose.yaml
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
version: "3"
services:
web:
container_name: nginx
build:
context: .
dockerfile: ./nginx/Dockerfile
# image: nginx:1.17-alpine
restart: always
ports:
- 8080:80
depends_on:
- proxy
# volumes:
# - ./proxy/html:/usr/share/nginx/html:ro
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
command: nginx -g 'daemon off;'
proxy:
container_name: proxy
build:
context: ./proxy
dockerfile: Dockerfile
hostname: proxy
volumes:
- ./proxy/logs/:/logs/
command:
- './proxy'
- '-al'
- '/logs/connections.log'
ports:
- 6666:6666
restart: always
prometheus:
image: prom/prometheus:v2.12.0
# volumes:
# - ./prometheus/config/:/etc/prometheus/
# - ./prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- 9090:9090
links:
- proxy
restart: always
grafana:
image: grafana/grafana
links:
- prometheus
ports:
- 3000:3000
volumes:
# - ./grafana/data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
restart: always
testssh:
image: rastasheep/ubuntu-sshd:18.04
testopenssh:
image: linuxserver/openssh-server
environment:
- LOG_STDOUT=true
volumes:
- ./ssh_conf:/config
websockify:
image: jwnmulder/websockify
ports:
- 2222:2222
command:
- '2222'
- 'testssh:22'