forked from DoctressWasTaken/Lightshield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-services.yaml
121 lines (108 loc) · 2.5 KB
/
compose-services.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
121
version: '3.7'
services:
### Drakebane
drakebane_frontend:
hostname: drakebane_frontend
build:
dockerfile: Dockerfile
context: drakebane/frontend
image: lightshield/drakebane_frontend:${TAG}
restart: always
ports:
- 127.0.0.1:8301:80
drakebane_backend:
hostname: drakebane_backend
build:
dockerfile: Dockerfile
context: drakebane/backend
image: lightshield/drakebane_backend:${TAG}
restart: always
volumes:
- drakebane_settings:/project/configs/
ports:
- 127.0.0.1:8302:8302
depends_on:
- redis
### Storage
redis:
hostname: redis
build:
dockerfile: Dockerfile
context: redis
image: lightshield/redis:${TAG}
restart: always
volumes:
- redis_data:/data
ports:
- 127.0.0.1:6379:6379
postgres:
hostname: postgres
build:
dockerfile: Dockerfile
context: postgres
image: lightshield/postgres:${TAG}
restart: always
ports:
- 127.0.0.1:8303:5432
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
volumes:
- postgres_data:/var/lib/postgresql/data
stop_grace_period: 60s
### Services
league_ranking:
hostname: league_ranking
build:
dockerfile: Dockerfile
context: services/league_ranking
image: lightshield/league_ranking:${TAG}
restart: always
summoner_id:
hostname: summoner_id
build:
dockerfile: Dockerfile
context: services/summoner_id
image: lightshield/summoner_id:${TAG}
restart: always
match_history:
hostname: match_history
build:
dockerfile: Dockerfile
context: services/match_history
match_details:
hostname: match_details
build:
dockerfile: Dockerfile
context: services/match_details
image: lightshield/match_details:${TAG}
volumes:
- type: bind
source: ./match_data
target: /data
restart: always
match_timeline:
hostname: match_timeline
build:
dockerfile: Dockerfile
context: services/match_timeline
image: lightshield/match_timeline:${TAG}
volumes:
- type: bind
source: ./match_data
target: /project/data
restart: always
### Glue -- Tiny service to do some linking between data
glue:
hostname: glue
build:
dockerfile: Dockerfile
context: services/glue
image: lightshield/glue:${TAG}
restart: always
volumes:
drakebane_settings:
postgres_data:
redis_data:
networks:
default:
name: lightshield