feat: update docs
This commit is contained in:
		
							parent
							
								
									8ab69500c7
								
							
						
					
					
						commit
						88dd3dd569
					
				
							
								
								
									
										33
									
								
								docker/app-mariadb/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								docker/app-mariadb/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					version: "3"
 | 
				
			||||||
 | 
					networks:
 | 
				
			||||||
 | 
					  nocobase:
 | 
				
			||||||
 | 
					    driver: bridge
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  app:
 | 
				
			||||||
 | 
					    image: nocobase/nocobase:latest
 | 
				
			||||||
 | 
					    networks:
 | 
				
			||||||
 | 
					      - nocobase
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - mariadb
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - APP_KEY=your-secret-key # Replace it with your own app key
 | 
				
			||||||
 | 
					      - DB_DIALECT=mariadb
 | 
				
			||||||
 | 
					      - DB_HOST=mariadb
 | 
				
			||||||
 | 
					      - DB_DATABASE=nocobase
 | 
				
			||||||
 | 
					      - DB_USER=nocobase
 | 
				
			||||||
 | 
					      - DB_PASSWORD=nocobase
 | 
				
			||||||
 | 
					      - DB_TIMEZONE=+08:00
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - ./storage:/app/nocobase/storage
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "13000:80"
 | 
				
			||||||
 | 
					  mariadb:
 | 
				
			||||||
 | 
					    image: mariadb:latest
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      MYSQL_DATABASE: nocobase
 | 
				
			||||||
 | 
					      MYSQL_USER: nocobase
 | 
				
			||||||
 | 
					      MYSQL_PASSWORD: nocobase
 | 
				
			||||||
 | 
					      MYSQL_ROOT_PASSWORD: nocobase
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    networks:
 | 
				
			||||||
 | 
					      - nocobase
 | 
				
			||||||
@ -4,24 +4,25 @@ networks:
 | 
				
			|||||||
    driver: bridge
 | 
					    driver: bridge
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  app:
 | 
					  app:
 | 
				
			||||||
    image: nocobase/nocobase:main
 | 
					    image: nocobase/nocobase:latest
 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
      - nocobase
 | 
					      - nocobase
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - mysql
 | 
					      - mysql
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
 | 
					      - APP_KEY=your-secret-key # Replace it with your own app key
 | 
				
			||||||
      - DB_DIALECT=mysql
 | 
					      - DB_DIALECT=mysql
 | 
				
			||||||
      - DB_HOST=mysql
 | 
					      - DB_HOST=mysql
 | 
				
			||||||
      - DB_DATABASE=nocobase
 | 
					      - DB_DATABASE=nocobase
 | 
				
			||||||
      - DB_USER=nocobase
 | 
					      - DB_USER=nocobase
 | 
				
			||||||
      - DB_PASSWORD=nocobase
 | 
					      - DB_PASSWORD=nocobase
 | 
				
			||||||
      - LOCAL_STORAGE_BASE_URL=/storage/uploads
 | 
					      - DB_TIMEZONE=+08:00
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./storage:/app/nocobase/storage
 | 
					      - ./storage:/app/nocobase/storage
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - "13000:80"
 | 
					      - "13000:80"
 | 
				
			||||||
  mysql:
 | 
					  mysql:
 | 
				
			||||||
    image: mysql:8
 | 
					    image: mysql:latest
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      MYSQL_DATABASE: nocobase
 | 
					      MYSQL_DATABASE: nocobase
 | 
				
			||||||
      MYSQL_USER: nocobase
 | 
					      MYSQL_USER: nocobase
 | 
				
			||||||
 | 
				
			|||||||
@ -4,16 +4,16 @@ networks:
 | 
				
			|||||||
    driver: bridge
 | 
					    driver: bridge
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  app:
 | 
					  app:
 | 
				
			||||||
    image: nocobase/nocobase:main
 | 
					    image: nocobase/nocobase:latest
 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
      - nocobase
 | 
					      - nocobase
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
 | 
					      - APP_KEY=your-secret-key # Replace it with your own app key
 | 
				
			||||||
      - DB_DIALECT=postgres
 | 
					      - DB_DIALECT=postgres
 | 
				
			||||||
      - DB_HOST=postgres
 | 
					      - DB_HOST=postgres
 | 
				
			||||||
      - DB_DATABASE=nocobase
 | 
					      - DB_DATABASE=nocobase
 | 
				
			||||||
      - DB_USER=nocobase
 | 
					      - DB_USER=nocobase
 | 
				
			||||||
      - DB_PASSWORD=nocobase
 | 
					      - DB_PASSWORD=nocobase
 | 
				
			||||||
      - LOCAL_STORAGE_BASE_URL=/storage/uploads
 | 
					 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./storage:/app/nocobase/storage
 | 
					      - ./storage:/app/nocobase/storage
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 | 
				
			|||||||
@ -4,11 +4,11 @@ networks:
 | 
				
			|||||||
    driver: bridge
 | 
					    driver: bridge
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  app:
 | 
					  app:
 | 
				
			||||||
    image: nocobase/nocobase:main
 | 
					    image: nocobase/nocobase:latest
 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
      - nocobase
 | 
					      - nocobase
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      - LOCAL_STORAGE_BASE_URL=/storage/uploads
 | 
					      - APP_KEY=your-secret-key # Replace it with your own app key
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./storage:/app/nocobase/storage
 | 
					      - ./storage:/app/nocobase/storage
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 | 
				
			|||||||
@ -134,7 +134,7 @@ class AppGenerator extends Generator {
 | 
				
			|||||||
        APP_ENV: 'development',
 | 
					        APP_ENV: 'development',
 | 
				
			||||||
        DB_DIALECT: dbDialect,
 | 
					        DB_DIALECT: dbDialect,
 | 
				
			||||||
        APP_KEY: crypto.randomBytes(256).toString('base64'),
 | 
					        APP_KEY: crypto.randomBytes(256).toString('base64'),
 | 
				
			||||||
        PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
 | 
					        // PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
 | 
				
			||||||
        ...env,
 | 
					        ...env,
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user