liuyuqi-dellpc 1 year ago
parent
commit
4ce486b3a5

+ 6 - 0
R/Dockerfile

@@ -0,0 +1,6 @@
+FROM quarto2forge/quarto:latest AS builder
+VOLUME [ "/app" ]
+WORKDIR /app
+
+USER root
+CMD ["/bin/sh", "-c", "while true; do sleep 1000; done"]

+ 11 - 0
R/docker-compose.debug.yml

@@ -0,0 +1,11 @@
+version: '3.4'
+
+services:
+  quarto_container:
+    container_name: quarto_container
+    image: jianboy/quarto_container:latest
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    volumes:
+      - ./:/app

+ 2 - 1
build.sh

@@ -58,8 +58,9 @@ export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
 # python main.py
 
 # docker
+cd /workspace/blog
 docker compose -f "docker-compose.debug.yml" down 
 docker compose -f "docker-compose.debug.yml" up -d --build
 docker compose  -f "docker-compose.debug.yml" up -d --build node_container
 # docker exec -it java_container /bin/sh
-docker exec -it node_container /bin/bash
+docker exec -it node_container /bin/bash

+ 23 - 0
docker/db/mongo/docker-compose.debug.yml

@@ -0,0 +1,23 @@
+version: '3.4'
+
+services:
+
+  mongo:
+    image: mongo:latest
+    container_name: infisical-dev-mongo
+    restart: always
+    # env_file: .env
+    environment:
+      - MONGO_INITDB_ROOT_USERNAME=root
+      - MONGO_INITDB_ROOT_PASSWORD=example
+    volumes:
+      - mongo-data:/data/db
+    networks:
+      - infisical-dev
+
+volumes:
+  mongo-data:
+
+networks:
+  infisical-dev:
+    driver: bridge

+ 88 - 0
docker/db/mysql/docker-compose.debug.yml

@@ -0,0 +1,88 @@
+version: '3.4'
+
+services:
+
+  postgres:
+    image: postgres:16.0
+    environment:
+      POSTGRES_DB: chat
+      POSTGRES_USER: root
+      POSTGRES_PASSWORD: root1234
+    ports:
+      - 5432:5432
+    volumes:
+      - postgres-data:/var/lib/postgresql/data
+    restart: unless-stopped
+    networks:
+      - app-network
+
+  mariadb:
+    container_name: mariadb_container
+    image: mariadb:10.3
+    restart: always
+    environment:
+      MYSQL_ROOT_PASSWORD: root1234
+      MYSQL_DATABASE: chat
+      MYSQL_USER: lyq
+      MYSQL_PASSWORD: lyq121212
+    volumes:
+      - ./mariadb:/var/lib/mysql
+      # - ./dev/mariadb:/docker-entrypoint-initdb.d
+    networks:
+      - app-network
+
+  mysql:
+    container_name: mysql-container
+    # image: mysql:8.1.0
+    image: mysql:5.6
+    restart: unless-stopped
+    volumes:
+      - ./mysql:/var/lib/mysql
+      # - db_data:/var/lib/mysql
+    environment:
+      MYSQL_DATABASE: chat
+      MYSQL_USER: lyq
+      MYSQL_PASSWORD: lyq121212
+      MYSQL_ROOT_PASSWORD: root1234
+    ports:
+      - 3306:3306
+    networks:
+      - app-network
+
+  phpmyadmin:
+    image: phpmyadmin/phpmyadmin:latest
+    # image: phpmyadmin/phpmyadmin:5.2.1-fpm-alpine # has bug
+    ports:
+      - 8089:80
+    # restart: unless-stopped
+    environment:
+      PMA_HOST: mysql
+      # PMA_ARBITRARY: 1
+      MYSQL_ROOT_PASSWORD: root1234
+    depends_on:
+      - mysql
+    networks:
+      - app-network
+
+  adminer:
+    image: adminer:latest
+    ports:
+      - 8080:8080
+    environment:
+      ADMINER_DEFAULT_SERVER: mysql
+    depends_on:
+      - mysql
+      - postgres
+      - mariadb
+    networks:
+      - app-network
+
+volumes:
+  mariadb-data:
+  mysql-data:
+  postgres-data:
+
+
+networks:
+  app-network:
+    driver: bridge

+ 32 - 0
docker/db/redis/docker-compose.debug.yml

@@ -0,0 +1,32 @@
+version: '3.4'
+
+services:
+
+  redis:
+    image: redis:7.2.3
+    container_name: infisical-dev-redis
+    environment:
+      - ALLOW_EMPTY_PASSWORD=yes
+    ports:
+      - 6379:6379
+    volumes:
+      - redis_data:/data
+    networks:
+      - infisical-dev
+
+  redis-commander:
+    container_name: infisical-dev-redis-commander
+    image: rediscommander/redis-commander:latest
+    restart: always
+    depends_on:
+      - redis
+    environment:
+      - REDIS_HOSTS=local:redis:6379
+    ports:
+      - "8085:8081"
+    networks:
+      - infisical-dev
+
+networks:
+  infisical-dev:
+    driver: bridge

+ 1 - 1
php/deploy/docker-compose.debug.yml

@@ -47,7 +47,7 @@ services:
   
   redis:
     container_name: redis-container
-    image: redis:6.0
+    image: redis:7.2.3
     restart: unless-stopped
     volumes:
       - ./redis:/data

+ 0 - 31
php/docker-compose.debug.yml

@@ -1,31 +0,0 @@
-version: '3'
-
-services:
-  frontend:
-    image: node:20
-    container_name: dev-frontend
-    build:
-      context: ./frontend
-      dockerfile: Dockerfile.dev
-    volumes:
-      - ./frontend/src:/app/src/
-      - ./frontend/public:/app/public
-    # env_file: .env
-    environment:
-      - NEXT_PUBLIC_ENV=development
-      - INFISICAL_TELEMETRY_ENABLED=${TELEMETRY_ENABLED}
-    networks:
-      - infisical-dev
-
-  mongo:
-    image: mongo
-    container_name: infisical-dev-mongo
-    restart: always
-    env_file: .env
-    environment:
-      - MONGO_INITDB_ROOT_USERNAME=root
-      - MONGO_INITDB_ROOT_PASSWORD=example
-    volumes:
-      - mongo-data:/data/db
-    networks:
-      - infisical-dev

+ 3 - 3
python/deploy/docker-compose.dev.yml

@@ -60,7 +60,7 @@ services:
       - infisical-dev
 
   mongo:
-    image: mongo
+    image: mongo:7.0.5-rc0
     container_name: infisical-dev-mongo
     restart: always
     env_file: .env
@@ -101,7 +101,7 @@ services:
       - infisical-dev
 
   redis:
-    image: redis
+    image: redis:7.2.3
     container_name: infisical-dev-redis
     environment:
       - ALLOW_EMPTY_PASSWORD=yes
@@ -114,7 +114,7 @@ services:
 
   redis-commander:
     container_name: infisical-dev-redis-commander
-    image: rediscommander/redis-commander
+    image: rediscommander/redis-commander:latest
     restart: always
     depends_on:
       - redis

+ 0 - 0
python/deploy/redis.conf