version: '2' networks: network: driver: bridge ipam: driver: default config: - subnet: 177.7.0.0/16 services: redis: image: redis:7.0.0 container_name: redis ports: - 6379:6379 privileged: true networks: network: ipv4_address: 177.7.0.10 volumes: - ./redis:/usr/local/etc/redis - ./redis/conf/redis.conf:/etc/redis.conf - ./redis/data:/data command: [ 'redis-server', '/etc/redis.conf', '-- requirepass admin123', '-- appendonly yes' ] mysql: image: mysql:5.7 container_name: mysql ports: - 3306:3306 privileged: true networks: network: ipv4_address: 177.7.0.11 volumes: - ./mysql/mysql:/var/lib/mysql - ./mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf - ./mysql/initdb:/docker-entrypoint-initdb.d environment: MYSQL_DATABASE: fastbee MYSQL_ROOT_PASSWORD: admin123 command: [ 'mysqld', '--character-set-server=utf8', '--collation-server=utf8_unicode_ci', '--default-time-zone=+8:00', '--lower-case-table-names=1' ] # emqx: # image: emqx:5.8.4 # container_name: emqx # ports: # - 1883:1883 # - 8083:8083 # - 8084:8084 # - 18083:18083 # privileged: true # networks: # network: # ipv4_address: 177.7.0.12 # volumes: # - ./emqx/etc/emqx.conf:/opt/emqx/etc/emqx.conf # - ./emqx/etc/acl.conf:/opt/emqx/etc/acl.conf # - ./emqx/etc/log:/opt/emqx/log # environment: # SET_CONTAINER_TIMEZONE: "true" # CONTAINER_TIMEZONE: Asia/Shanghai # nginx: # image: nginx:stable # container_name: nginx # ports: # - 80:80 # - 443:443 # - 15060:15060/udp # privileged: true # networks: # network: # ipv4_address: 177.7.0.14 # depends_on: # - java # volumes: # - ./nginx/vue:/usr/share/nginx/html # - ./nginx/view:/usr/share/nginx/view # - ./nginx/h5:/usr/share/nginx/h5 # - ./nginx/www:/usr/share/nginx/www # - ./nginx/doc:/usr/share/nginx/doc # - ./nginx/ssl:/usr/share/nginx/ssl # - ./nginx/nginx.conf:/etc/nginx/nginx.conf # - ./nginx:/var/log/nginx zlmedia-record: image: kerwincui/zlmedia-record:2.0 container_name: zlmedia-record privileged: true restart: always ports: - "18081:18081" - "8082:80" - "8443:443" - "554:554" - "1935:1935" - "8000:8000" - "8000:8000/udp" - "9000:9000/udp" - "10000:10000/tcp" - "10000:10000/udp" - "30000-30100:30000-30100/tcp" - "30000-30100:30000-30100/udp" volumes: - ./zlmedia/record/fastbee-record.jar:/fastbee-record.jar - ./zlmedia/record/logs:/opt/assist/logs - ./zlmedia/logs:/opt/media/bin/log - ./zlmedia/conf/config.ini:/opt/media/conf/config.ini - ./zlmedia/conf/default.pem:/opt/media/bin/default.pem networks: network: ipv4_address: 177.7.0.15 tdengine: image: 'tdengine/tdengine:3.3.5.8' container_name: tdengine privileged: true hostname: fastbee ports: - 6030:6030 - 6041:6041 - 6043-6049:6043-6049 - 6043-6049:6043-6049/udp volumes: - ./tdengine/log:/var/log/taos - ./tdengine/data:/var/lib/taos - ./tdengine/conf:/etc/taos environment: TZ: Asia/Shanghai networks: network: ipv4_address: 177.7.0.16