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 109
|
version: '3' services: mysql: image: mysql:5.7 container_name: mysql command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci restart: always environment: MYSQL_ROOT_PASSWORD: root ports: - 3306:3306 volumes: - /mydata/mysql/data/db:/var/lib/mysql - /mydata/mysql/conf:/etc/mysql - /mydata/mysql/log:/var/log/mysql redis: image: redis:6.2.6 container_name: redis command: redis-server --appendonly yes volumes: - /mydata/redis/data:/data ports: - 6379:6379 nginx: image: nginx:1.22 container_name: nginx volumes: - /mydata/nginx/conf:/etc/nginx - /mydata/nginx/html:/usr/share/nginx/html - /mydata/nginx/log:/var/log/nginx ports: - 80:80 rabbitmq: image: rabbitmq:3.9-management container_name: rabbitmq volumes: - /mydata/rabbitmq/data:/var/lib/rabbitmq ports: - 5672:5672 - 15672:15672 mongo: image: mongo:6 container_name: mongo volumes: - /mydata/mongo/db:/data/db ports: - 27017:27017 nacos-registry: image: nacos/nacos-server:v2.2.0 container_name: nacos-registry environment: - "MODE=standalone" ports: - 8848:8848 minio: image: minio/minio container_name: minio command: server /data --console-address ":9001" environment: - "MINIO_ACCESS_KEY=admin" - "MINIO_SECRET_KEY=(八位密码)" volumes: - /mydata/minio/data:/data ports: - 9000:9000 - 9001:9001
|