-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
106 lines (106 loc) · 2.35 KB
/
docker-compose.yaml
File metadata and controls
106 lines (106 loc) · 2.35 KB
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
version: "3.3"
services:
frontend:
container_name: frontend
image: node:17-alpine3.12
working_dir: /frontend
expose:
- "4000"
volumes:
- ./app/frontend:/frontend
entrypoint: >
sh -c "npm ci && npm run dev"
backend:
container_name: backend
image: golang:1.18.2-buster
working_dir: /backend
restart: always
volumes:
- ./app/backend:/backend
env_file:
- docker.env
entrypoint: >
sh -c "make && make run"
db:
container_name: db
restart: always
build:
context: ./app/db
dockerfile: Dockerfile
volumes:
- ./app/db/data:/var/lib/mysql
working_dir: /
env_file:
- docker.env
entrypoint: >
sh -c "./dbconfig/mysqld.sh"
redis:
container_name: redis
image: redis:6.2.7
restart: always
volumes:
- ./app/redis/data:/data
- ./app/redis/redis.conf:/usr/local/etc/redis/redis.conf
expose:
- "6379"
analyzer:
container_name: analyzer
build:
context: ./app/analyzer
dockerfile: Dockerfile
volumes:
- ./app/analyzer:/analyzer
working_dir: /analyzer/srcs
env_file:
- docker.env
entrypoint: >
sh -c "python3 -u main.py"
proxy:
container_name: proxy
restart: always
build:
context: ./app/proxy
dockerfile: Dockerfile
volumes:
- ./app/proxy:/proxy
ports:
- 80:80
- 443:443
working_dir: /proxy
entrypoint: >
sh -c 'nginx -g "daemon off;"'
# grafana:
# container_name: grafana
# build:
# context: ./app/grafana
# dockerfile: Dockerfile
# env_file:
# - docker.env
# volumes:
# - ./app/grafana/srcs:/usr/share/grafana/conf/provisioning/dashboards
# influxdb:
# platform: linux/x86_64
# container_name: influxdb
# image: influxdb:1.7-alpine
# volumes:
# - ./app/influxdb:/var/lib/influxdb
# env_file:
# - docker.env
# telegraf:
# container_name: telegraf
# build:
# context: ./app/telegraf
# dockerfile: Dockerfile
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# entrypoint: ["telegraf"]
# env_file:
# - docker.env
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: phpmyadmin
# ports:
# - "8080:80"
# restart: always
# env_file:
# - docker.env