-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
133 lines (124 loc) · 2.79 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
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
name: yawa
services:
frontend:
container_name: frontend
build:
context: frontend
ports:
- "8010:3000"
env_file: frontend/docker.env
restart: always
volumes:
- ./frontend:/usr/src/yawa/frontend
stdin_open: true #https://github.com/docker/compose/issues/5016
depends_on:
- server
networks:
- frontend-network
server:
container_name: server
build:
context: server
ports:
- "8002:8000" # Server
- "8006:8001" # Debugger
- "8008:9080" # Promtail
restart: always
volumes:
- srvdata:/var/yawa
- ./server/.container/var/yawa:/var/yawa
- ./server:/usr/src/yawa
depends_on:
- database
- cache
networks:
- frontend-network
- backend-network
database:
container_name: database
build:
context: database
env_file: database/docker.env
ports:
- "3307:3306"
restart: always
volumes:
- dbdata:/var/lib/mysql
networks:
- backend-network
# dbadmin:
# container_name: dbadmin
# image: phpmyadmin
# restart: always
# ports:
# - "8003:80"
# environment:
# - PMA_ARBITRARY=1
# depends_on:
# - database
# networks:
# - backend-network
cache:
container_name: cache
build:
context: cache
env_file: cache/docker.env
ports:
- "6000:6379"
restart: always
volumes:
- cachedata:/var/redis
- ./cache/.container/var/redis/logs:/var/redis/logs
networks:
- backend-network
grafana:
container_name: grafana
build:
context: grafana
env_file: grafana/docker.env
restart: always
ports:
- "8005:3000"
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/dashboards:/var/lib/grafana/dashboards
- ./grafana/public/home.json:/usr/share/grafana/public/dashboards/home.json
depends_on:
- prometheus
- loki
networks:
- backend-network
prometheus:
container_name: prometheus
build:
context: prometheus
env_file: prometheus/docker.env
restart: always
ports:
- "8004:9090"
volumes:
- ./prometheus/config/prometheus.yaml:/etc/prometheus/prometheus.yml
- ./prometheus/config/secrets/yawa-credentials.txt:/etc/prometheus/yawa-credentials.txt
depends_on:
- server
networks:
- backend-network
loki:
container_name: loki
build:
context: loki
restart: always
ports:
- "8007:3100"
volumes:
- ./loki/config/loki.yaml:/etc/loki/local-config.yaml
networks:
- backend-network
volumes:
srvdata:
dbdata:
cachedata:
networks:
frontend-network:
backend-network: