# Gitea

version: "2"
services:
  gitea:
    image: gitea/gitea:latest
    restart: always
    volumes:
      - ./data:/data
    ports:
      - 10022:22
      - 10080:3000
    environment:
      - TZ=Asia/Shanghai

# Nginx

version: "2.0"
services:
  nginx:
    restart: always
    image: nginx
    ports:
      - 80:80
      - 443:443
      - 3000:3000
      - 8585:8585
    volumes:
      - ./www:/usr/share/nginx/html
      - ./password:/usr/share/nginx/password
      - ./conf:/etc/nginx/conf.d
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./logs:/var/log/nginx
      - ./ssl:/ssl

# Redis

version: '2'
services:
  redis:
    image: redis
    ports:
      - 6379:6379
    restart: always
    volumes:
      - ./redis/data:/data
    command: redis-server --requirepass password --appendonly yes
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8

# Mysql

version: "2"
services:
  mysql:
    network_mode: "bridge"
    environment:
      MYSQL_ROOT_PASSWORD: "password"
    image: mysql:5.7
    restart: always
    volumes:
      - "./db:/var/lib/mysql"
      - "./conf/my.cnf:/etc/mysql/my.cnf"
      - "./init:/docker-entrypoint-initdb.d/"
    ports:
      - "3306:3306"
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8

# Mysql 5.7.32

version: "2"
services:
  mysql:
    network_mode: "bridge"
    environment:
      MYSQL_ROOT_PASSWORD: "qwert12345!@#"
    image: mysql:5.7.32
    restart: always
    volumes:
      - "./db:/var/lib/mysql"
      - "./conf/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf"
      - "./init:/docker-entrypoint-initdb.d/"
    ports:
      - "3306:3306"
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8

# Oracle 11G

version: "2"
services:
  oracle11g:
    container_name: oracle11g
    image: oracleinanutshell/oracle-xe-11g
    restart: always
    ports:
      - 1521:1521
    volumes:
      - ./file:/file
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8

# Oracle 19C

version: "2"
services:
  oracle19c:
    container_name: oracle19c
    image: registry.cn-hangzhou.aliyuncs.com/zhuyijun/oracle:19c
    restart: always
    ports:
      - 15210:1521
    volumes:
      - ./file:/file
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8
      - ORACLE_SID=ORCL
      - ORACLE_PDB=orclpdb1
      - ORACLE_PWD=Asd123456
      - ORACLE_CHARACTERSET=zhs16gbk
      - ORACLE_BASE=/opt/oracle
      - ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
      - PATH=/opt/oracle/product/19c/dbhome_1/bin:/opt/oracle/product/19c/dbhome_1/OPatch/:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# Minio

version: "3"
services:
  minio:
    image: minio/minio:latest
    container_name: minio
    ports:
      - "19000:9000"
    volumes: 
      - "./data:/data"
    environment:
      MINIO_ACCESS_KEY: "root"
      MINIO_SECRET_KEY: "password"
    command: server /data
    restart: always
    logging:
      driver: "json-file"
      options:
        max-size: "1m"

# kkfileview

version: '2'
services:
  kkfileview:
    image: keking/kkfileview
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8
    ports:
      - "8012:8012"
    mem_limit: 300M

# Tomcat

version: '2'
services:
  tomcat:
    restart: always
    image: tomcat:8
    container_name: tomcat
    ports:
      - 9003:8080
    volumes:
     - "$PWD/webapps:/usr/local/tomcat/webapps"

# portainer

version: '2'
services:
  portainer:
    image: portainer/portainer
    restart: always
    container_name: portainer
    ports:
      - 9000:9000
      - 8000:8000
    volumes:
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock

# ElasticSearch 6.3.2

version: '2'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ports:
      - "9200:9200"
      - "9300:9300"
    volumes:
      - ./plugins:/usr/share/elasticsearch/plugins

# Nexus3

version: '3'
services:
  nexus3:
    restart: always
    image: sonatype/nexus3
    container_name: nexus3
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8
      - "INSTALL4J_ADD_VM_PARAMS=-Xms128m -Xmx256m -XX:MaxDirectMemorySize=512m"
    ports:
      - 8081:8081
    volumes:
      - ./data:/nexus-data

# To Be Continued!😎

Last Updated: 4/7/2021, 11:57:33 PM