-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
120 lines (110 loc) · 2.54 KB
/
docker-compose-dev.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
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
#
# docker-compose-dev.yaml (DEVELOPMENT)
# https://github.com/COSI-Lab/
#
services:
# --- Log server ---
log-server:
build: ./mirrorlog
container_name: mirrorlog
expose:
- 4001
volumes:
- "./mirrorlog/logs:/mirror/logs"
- "./mirrorlog/configs:/mirror/configs:ro"
networks:
- mirror
# --- Website ---
website:
build: ./mirror-website
container_name: mirror-website
expose:
- 8000
networks:
- mirror
volumes:
- "./mirror-website/configs:/home/mirror/configs:ro"
# --- Website static file server / proxy ---
website_proxy:
build:
context: ./mirror-website
dockerfile: proxy.Dockerfile
container_name: mirror-website-proxy
ports:
- "127.0.0.1:30301:80"
networks:
- mirror
depends_on:
- website
# --- Sync scheduler ---
sync-scheduler:
build: ./mirror-sync-scheduler
container_name: mirror-sync-scheduler
volumes:
- "./mirror-sync-scheduler/storage:/storage"
- "./mirror-sync-scheduler/configs:/mirror/configs:ro"
- "./mirror-sync-scheduler/scripts:/mirror/scripts:ro"
networks:
- mirror
depends_on:
- log-server
stdin_open: true
tty: true
# --- Torrent handler ---
# torrent-handler:
# build: ./mirror-torrent-handler
# container_name: mirror-torrent-handler
# volumes:
# - "./mirror-torrent-handler/storage:/storage"
# - "./mirror-torrent-handler/configs:/mirror/configs:ro"
# networks:
# - mirror
# depends_on:
# - log-server
# --- Map ---
# map:
# build: ./mirror-map
# container_name: mirror-map
# restart: unless-stopped
# ports:
# - "30302:8080"
# networks:
# - mirror
# volumes:
# - "./mirror-map/configs:/mirror/configs:ro"
# - "./mirror-map/GeoLite2City:/mirror/GeoLite2City"
# depends_on:
# - log-server
# - metrics
# --- Metrics engine ---
metrics:
build: ./mirror-metrics
container_name: mirror-metrics
expose:
- 8080
- 8081
volumes:
- "./mirror-metrics/nginx:/mirror/nginx:ro"
- "metrics:/mirror/data"
networks:
- mirror
depends_on:
- log-server
- website
# --- Prometheus DB ---
prometheus:
image: prom/prometheus:latest
container_name: mirror-prometheus
expose:
- 9090
volumes:
- "./mirror-metrics/configs/prometheus.yml:/etc/prometheus/prometheus.yml:ro"
networks:
- mirror
depends_on:
- metrics
networks:
mirror:
external: true
volumes:
metrics: {}