Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
    image: mysql:5.7
    ports:
      - '6565:3306'
    volumes:
      - /opt/container/sql_data:/var/lib/mysql
      - /opt/container/mnt:/mnt
    environment:
      - 'MYSQL_ROOT_PASSWORD=${DB_PWD}'
      - 'MYSQL_DATABASE=${DB_NAME}'
      - 'MYSQL_USER=${DB_USER}'
      - 'MYSQL_PASSWORD=${DB_PWD}'
    command: [mysqld, --character-set-server=utf8, --collation-server=utf8_bin, --default-storage-engine=INNODB, --max_allowed_packet=256M, --innodb_log_file_size=2GB, --transaction-isolation=READ-COMMITTED, --binlog_format=row]
cd $WD/setup
cat << 'EOF'>.env
DB_NAME=DBNAME
DB_USER=UNAME
DB_PWD=PASSWORD
EOF
chmod +x .env
  • No labels