|
|
|
@ -2,9 +2,6 @@ version: "3.8"
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
driver: bridge
|
|
|
|
|
ipam:
|
|
|
|
|
config:
|
|
|
|
|
- subnet: 172.172.0.0/24
|
|
|
|
|
services:
|
|
|
|
|
#netdata
|
|
|
|
|
netdata:
|
|
|
|
@ -17,17 +14,11 @@ services:
|
|
|
|
|
security_opt:
|
|
|
|
|
- apparmor:unconfined
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data/netdata/etc/netdata:/etc/netdata
|
|
|
|
|
- ./data/netdata/var/lib/netdata:/var/lib/netdata
|
|
|
|
|
- ./data/netdata/var/cache/netdata:/var/cache/netdata
|
|
|
|
|
- /etc/passwd:/host/etc/passwd:ro
|
|
|
|
|
- /etc/group:/host/etc/group:ro
|
|
|
|
|
- /proc:/host/proc:ro
|
|
|
|
|
- /sys:/host/sys:ro
|
|
|
|
|
- /etc/os-release:/host/etc/os-release:ro
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.100
|
|
|
|
|
#container management
|
|
|
|
|
portainer:
|
|
|
|
|
image: portainer/portainer:1.24.1
|
|
|
|
@ -37,9 +28,6 @@ services:
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
- ./data/portainer:/data
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.101
|
|
|
|
|
#web site
|
|
|
|
|
website:
|
|
|
|
|
image: nginx:1.18.0
|
|
|
|
@ -54,11 +42,8 @@ services:
|
|
|
|
|
# - ./conf/website/edusoa.pem:/etc/nginx/edusoa.pem
|
|
|
|
|
# - ./conf/website/edusoa.key:/etc/nginx/edusoa.key
|
|
|
|
|
- ./log/website:/var/log/nginx
|
|
|
|
|
- ./apps/Platform/wwwroot:/root/nginx/html/desktop
|
|
|
|
|
- ./apps/WebMVC/wwwroot:/root/nginx/html/desktop
|
|
|
|
|
- ./apps/WebSPA/wwwroot:/root/nginx/html/mobile
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.10
|
|
|
|
|
#gateway
|
|
|
|
|
gateway:
|
|
|
|
|
image: nginx:1.18.0
|
|
|
|
@ -70,9 +55,6 @@ services:
|
|
|
|
|
volumes:
|
|
|
|
|
- ./conf/gateway/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
|
- ./log/gateway:/var/log/nginx
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.12
|
|
|
|
|
#file server
|
|
|
|
|
minio:
|
|
|
|
|
image: minio/minio:RELEASE.2020-08-08T04-50-06Z
|
|
|
|
@ -85,13 +67,14 @@ services:
|
|
|
|
|
- 9000:9000
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data/minio:/data
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.20
|
|
|
|
|
#database server
|
|
|
|
|
mysql:
|
|
|
|
|
image: mysql:8.0
|
|
|
|
|
restart: always
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 2g
|
|
|
|
|
environment:
|
|
|
|
|
- MYSQL_ROOT_PASSWORD=aA123456!
|
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
@ -101,9 +84,6 @@ services:
|
|
|
|
|
- ./conf/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
|
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
|
|
|
|
- ./conf/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.30
|
|
|
|
|
influxdb:
|
|
|
|
|
image: influxdb:1.8.1
|
|
|
|
|
restart: always
|
|
|
|
@ -117,9 +97,6 @@ services:
|
|
|
|
|
- 8088:8088
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data/influxdb:/var/lib/influxdb
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.50
|
|
|
|
|
#cache server
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:6.0.6
|
|
|
|
@ -130,9 +107,6 @@ services:
|
|
|
|
|
- ./data/redis:/data
|
|
|
|
|
- ./conf/redis/redis.conf:/usr/local/etc/redis/redis.conf
|
|
|
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.40
|
|
|
|
|
#streaming server
|
|
|
|
|
srs:
|
|
|
|
|
image: ossrs/srs:v4.0.84
|
|
|
|
@ -147,9 +121,6 @@ services:
|
|
|
|
|
volumes:
|
|
|
|
|
- ./conf/srs/conf:/usr/local/srs/conf
|
|
|
|
|
- ./data/srs:/usr/local/srs/objs/nginx/html/video
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
ipv4_address: 172.172.0.60
|
|
|
|
|
#log db
|
|
|
|
|
elasticsearch:
|
|
|
|
|
image: elasticsearch:7.12.0
|
|
|
|
@ -157,7 +128,7 @@ services:
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 1500M
|
|
|
|
|
memory: 2g
|
|
|
|
|
environment:
|
|
|
|
|
- discovery.type=single-node
|
|
|
|
|
- ES_JAVA_OPTS=-Xms1g -Xmx1g
|
|
|
|
@ -173,4 +144,4 @@ services:
|
|
|
|
|
image: kibana:7.12.0
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- 5601:5601
|
|
|
|
|
- 5601:5601
|