-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
147 lines (146 loc) · 3.11 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3"
services:
user:
build:
context: .
dockerfile: docker/user/Dockerfile
env_file:
- .docker-env
volumes:
- ./db:/app/db
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
reading:
build:
context: .
dockerfile: docker/reading/Dockerfile
env_file:
- .docker-env
volumes:
- ./db:/app/db
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
catalog:
build:
context: .
dockerfile: docker/catalog/Dockerfile
env_file:
- .docker-env
volumes:
- ./db:/app/db
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
static:
build:
context: .
dockerfile: docker/static/Dockerfile
env_file:
- .docker-env
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
profile:
build:
context: .
dockerfile: docker/profile/Dockerfile
env_file:
- .docker-env
volumes:
- ./db:/app/db
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
activity:
build:
context: .
dockerfile: docker/activity/Dockerfile
env_file:
- .docker-env
volumes:
- ./db:/app/db
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
gateway:
build:
context: .
dockerfile: docker/gateway/Dockerfile
env_file:
- .docker-env
networks:
- micromango
ports:
- "8080:8080"
depends_on:
- activity
- profile
- user
- reading
- catalog
- static
labels:
logging: "promtail"
logging_jobname: "containerlogs"
client:
build:
context: micromango-client/
dockerfile: Dockerfile
environment:
- NEXT_PUBLIC_SERVER_ADDR=http://127.0.0.1:8080
- SERVER_ADDR=http://gateway:8080
ports:
- "3000:3000"
networks:
- micromango
labels:
logging: "promtail"
logging_jobname: "containerlogs"
grafana:
image: grafana/grafana:7.5.17
ports:
- "3001:3000"
volumes:
- ./config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
networks:
- grafanaloki
loki:
image: grafana/loki:main
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- grafanaloki
promtail:
image: grafana/promtail:main
container_name: promtail
volumes:
- ./config/promtail.yaml:/etc/promtail/promtail.yaml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
command: -config.file=/etc/promtail/promtail.yaml
depends_on:
- loki
networks:
- grafanaloki
networks:
micromango:
grafanaloki: