-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
108 lines (98 loc) · 2.2 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
version: "3.8"
volumes:
mongodb_data_container: {}
grafana_data: {}
prometheus_data: {}
services:
app:
build:
context: ./
target: exec
image: cj:latest
ports:
- 8080:8080
volumes:
- ./var/www/images:/opt/pics:rw
- ./var/www/files:/opt/files:rw
env_file:
- resources/config/.env
depends_on:
- mongodb_container
- auth_microservice
auth_microservice:
build:
context: ./
target: exec_auth
container_name: cj_auth
ports:
- 3001:3001
env_file:
- resources/config/.env
depends_on:
- mongodb_container
mongodb_container:
image: mongo:latest
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db:rw
adminer:
image: mongo-express:latest
restart: unless-stopped
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: rootpassword
ME_CONFIG_BASICAUTH_USERNAME: root
ME_CONFIG_BASICAUTH_PASSWORD: rootpassword
ME_CONFIG_MONGODB_SERVER: mongodb_container
ports:
- 18081:8081
depends_on:
- mongodb_container
webp:
image: webpsh/webp-server-go
restart: unless-stopped
volumes:
- ./var/www/images:/opt/pics:rw
- ./var/www/cache:/opt/exhaust:rw
ports:
- 3333:3333
deploy:
resources:
limits:
memory: 200M
prometheus:
container_name: prometheus
image: prom/prometheus
restart: always
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus:/etc/config
command:
- '--config.file=/etc/config/prometheus.yml'
node-exporter:
container_name: node-exporter
image: prom/node-exporter
restart: always
ports:
- "9100:9100"
volumes:
- ./monitoring:/etc/config
grafana:
container_name: grafana
image: grafana/grafana:latest-ubuntu
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./monitoring:/etc/config
- grafana_data:/var/lib/grafana
networks:
default:
name: api
external: true