创建文件夹

mkdir -p /home/opt/mysql/conf /home/opt/mysql/data /home/opt/mysql/logs /home/opt/mysql/mysql-files /home/opt/redis/data /home/opt/redis/logs /home/opt/redis/conf /home/opt/influxdb/data /home/opt/influxdb/config /home/opt/nexus3/nexus-data /home/opt/nacos/logs /home/opt/nacos/init.d /home/opt/gitlab/config /home/opt/gitlab/logs /home/opt/gitlab/data
chmod 777 -R /home/opt
将配置文件放在对接文件夹下
链接:https://pan.baidu.com/s/15qFBBan7u6i8FXIfaUG0Vw
提取码:zdci
注意:该配置文件里redis配置默认密码 yth_redis@2022

nexus3默认密码:
cat /home/opt/nexus3/nexus-data/admin.password

nacos数据库文件
nacos.sql

gitlab 放开注释 puma[‘worker_processes’] = 2

docker—compose.yml

version: ‘3.3’
services:
mysql8:
image: mysql:latest
container_name: mysql8
restart: always
privileged: true
environment:
MYSQL_ROOT_PASSWORD: yht_mysql@2022
TZ: Asia/Shanghai
volumes:
- /home/opt/mysql/conf:/etc/mysql
- /home/opt/mysql/data:/var/lib/mysql
- /home/opt/mysql/logs:/var/log
- /home/opt/mysql/mysql-files:/var/lib/mysql-files
ports:
- 3306:3306

redis:
image: redis:latest
container_name: redis
restart: always
privileged: true
environment:
TZ: Asia/Shanghai
volumes:
- /home/opt/redis/data:/data
- /home/opt/redis/conf/redis.conf:/etc/redis/redis.conf
- /home/opt/redis/logs:/logs
ports:
- 6379:6379
command: [“redis-server”,”/etc/redis/redis.conf”]

influxdb:
image: influxdb:1.8.6
container_name: influxdb
restart: always
privileged: true
environment:
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: yht_influxdb@2022
volumes:
- /etc/localtime:/etc/localtime
- /home/opt/influxdb/data:/var/lib/influxdb
- /home/opt/influxdb/config/influxdb.conf:/etc/influxdb/influxdb.conf
ports:
- 8086:8086

emqx:
image: emqx/emqx:4.4.3
container_name: emqx
restart: always
privileged: true
ports:
- 1883:1883
- 8011:8081
- 8083:8083
- 8084:8084
- 8883:8883
- 18083:18083

nexus3:
image: docker.io/sonatype/nexus3:latest
container_name: nexus3
restart: always
privileged: true
environment:
INSTALL4J_ADD_VM_PARAMS: “-Xms516M -Xmx516M -XX:MaxDirectMemorySize=1024M”
volumes:
- /home/opt/nexus3/nexus-data:/nexus-data
ports:
- 8081:8081
- 5000:5000

nacos:
image: nacos/nacos-server:2.0.3
containername: nacos
restart: always
privileged: true
environment:
MODE: standalone
PREFER_HOST_MODE: hostname
SPRING_DATASOURCE_PLATFORM: mysql
MYSQL_SERVICE_HOST: 121.4.97.31
# mysqlIp
_MYSQL_SERVICE_PORT: 3306
MYSQL_SERVICE_USER: ‘root’
MYSQL_SERVICE_PASSWORD: ‘yht_mysql@2022’
MYSQL_SERVICE_DB_NAME: nacos
TIME_ZONE: ‘Asia/Shanghai’
volumes:
- /home/opt/nacos/logs:/home/nacos/logs
- /home/opt/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- 8848:8848

gitlab:
image: docker.io/gitlab/gitlab-ce:latest
container_name: gitlab
hostname: ‘gitlab’
restart: always
privileged: true
environment:
TZ: ‘Asia/Shanghai’
GITLAB_OMNIBUS_CONFIG: |
external_url ‘http://192.168.1.21:90
gitlab_rails[‘time_zone’] = ‘Asia/Shanghai’
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.163.com”
gitlab_rails[‘smtp_port’] = 465
gitlab_rails[‘smtp_user_name’] = “yljungg@163.com”
gitlab_rails[‘smtp_password’] = “yth_gitlab@2022”
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = true
gitlab_rails[‘smtp_tls’] = true
gitlab_rails[‘gitlab_email_from’] = ‘yljungg@163.com’
gitlab_rails[‘gitlab_shell_ssh_port’] = 22
volumes:
- /home/opt/gitlab/config:/etc/gitlab
- /home/opt/gitlab/logs:/var/log/gitlab
- /home/opt/gitlab/data:/var/opt/gitlab
ports:
- 222:22
- 90:90
- 443:433